[FIR] Infer type of elvis from lhs if rhs is Nothing

^KT-50875 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-01-21 17:42:14 +03:00
parent 83ff0946fe
commit d1fb8338ef
8 changed files with 73 additions and 4 deletions
@@ -3645,6 +3645,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt50788.kt");
}
@Test
@TestMetadata("kt50875.kt")
public void testKt50875() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt50875.kt");
}
@Test
@TestMetadata("literalInWhenSubject.kt")
public void testLiteralInWhenSubject() throws Exception {