FIR: allow no else branch for when on Nothing(?)

This commit is contained in:
Tianyu Geng
2021-07-26 15:02:22 -07:00
committed by teamcityserver
parent e242ad955b
commit f737d8002e
8 changed files with 69 additions and 2 deletions
@@ -32089,6 +32089,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt");
}
@Test
@TestMetadata("whenOnNothing.kt")
public void testWhenOnNothing() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/whenOnNothing.kt");
}
@Test
@TestMetadata("WhenTypeDisjunctions.kt")
public void testWhenTypeDisjunctions() throws Exception {
@@ -32089,6 +32089,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt");
}
@Test
@TestMetadata("whenOnNothing.kt")
public void testWhenOnNothing() throws Exception {
runTest("compiler/testData/diagnostics/tests/when/whenOnNothing.kt");
}
@Test
@TestMetadata("WhenTypeDisjunctions.kt")
public void testWhenTypeDisjunctions() throws Exception {