correctly generate safe casts from Unit type

#KT-4494 fixed
This commit is contained in:
Dmitry Jemerov
2015-03-04 19:28:02 +01:00
parent 2835459920
commit 48b0afd84d
3 changed files with 16 additions and 0 deletions
@@ -930,6 +930,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/notIs.kt");
doTest(fileName);
}
@TestMetadata("unitNullableCast.kt")
public void testUnitNullableCast() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/unitNullableCast.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/box/classes")