Fix subject variable handling in specialized enum codegen

#KT-27161
This commit is contained in:
Dmitry Petrov
2018-09-26 14:36:02 +03:00
parent 258999fa9e
commit 7624dbbb20
11 changed files with 214 additions and 0 deletions
@@ -23239,6 +23239,31 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/isCheckOnSubjectVariable.kt");
}
@TestMetadata("kt27161.kt")
public void testKt27161() throws Exception {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161.kt");
}
@TestMetadata("kt27161_int.kt")
public void testKt27161_int() throws Exception {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_int.kt");
}
@TestMetadata("kt27161_nested.kt")
public void testKt27161_nested() throws Exception {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_nested.kt");
}
@TestMetadata("kt27161_nested2.kt")
public void testKt27161_nested2() throws Exception {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_nested2.kt");
}
@TestMetadata("kt27161_string.kt")
public void testKt27161_string() throws Exception {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/kt27161_string.kt");
}
@TestMetadata("rangeCheckOnSubjectVariable.kt")
public void testRangeCheckOnSubjectVariable() throws Exception {
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/rangeCheckOnSubjectVariable.kt");