PSI2IR more JVM-like exhaustive when behavior KT-36840

This commit is contained in:
Dmitry Petrov
2020-10-21 16:21:46 +03:00
parent 7edeccbdc7
commit b1b87becc8
11 changed files with 652 additions and 20 deletions
@@ -4748,6 +4748,11 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenReturn.kt");
}
@TestMetadata("exhaustiveWhenSpecialCases.kt")
public void testExhaustiveWhenSpecialCases() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenSpecialCases.kt");
}
@TestMetadata("exhaustiveWhenUnit.kt")
public void testExhaustiveWhenUnit() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenUnit.kt");
@@ -917,6 +917,11 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
runTest("compiler/testData/ir/irText/expressions/equals.kt");
}
@TestMetadata("exhaustiveWhenElseBranch.kt")
public void testExhaustiveWhenElseBranch() throws Exception {
runTest("compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.kt");
}
@TestMetadata("extFunInvokeAsFun.kt")
public void testExtFunInvokeAsFun() throws Exception {
runTest("compiler/testData/ir/irText/expressions/extFunInvokeAsFun.kt");