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
@@ -4820,6 +4820,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
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");