Fix VerifyError for 'when' of type 'Unit?'

This commit is contained in:
Alexander Udalov
2013-12-10 21:07:05 +04:00
parent 0d9c126485
commit 00da5fe1fb
4 changed files with 39 additions and 5 deletions
@@ -4812,6 +4812,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/unit/nullableUnit.kt");
}
@TestMetadata("nullableUnitInWhen1.kt")
public void testNullableUnitInWhen1() throws Exception {
doTest("compiler/testData/codegen/box/unit/nullableUnitInWhen1.kt");
}
@TestMetadata("nullableUnitInWhen2.kt")
public void testNullableUnitInWhen2() throws Exception {
doTest("compiler/testData/codegen/box/unit/nullableUnitInWhen2.kt");
}
@TestMetadata("unitClassObject.kt")
public void testUnitClassObject() throws Exception {
doTest("compiler/testData/codegen/box/unit/unitClassObject.kt");