Fix safe calls codegen for nullable generic

This commit is contained in:
Alexander Udalov
2013-02-06 17:53:31 +04:00
parent 433660b2ce
commit 64bc79aaac
4 changed files with 28 additions and 4 deletions
@@ -3050,6 +3050,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/safeCall"), "kt", true);
}
@TestMetadata("genericNull.kt")
public void testGenericNull() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/box/safeCall/genericNull.kt");
}
@TestMetadata("kt1572.kt")
public void testKt1572() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/box/safeCall/kt1572.kt");
@@ -3070,6 +3075,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
blackBoxFileByFullPath("compiler/testData/codegen/box/safeCall/kt247.kt");
}
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/box/safeCall/primitive.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/strings")