PSI2IR more JVM-like exhaustive when behavior KT-36840
This commit is contained in:
@@ -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");
|
||||
|
||||
+5
@@ -4748,6 +4748,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
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");
|
||||
|
||||
@@ -916,6 +916,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user