generate CHECK_CAST for smartcasted 'this'

This commit is contained in:
Svetlana Isakova
2014-01-21 13:37:36 +04:00
parent 9ed57a5767
commit 9d493b6f7b
5 changed files with 43 additions and 8 deletions
@@ -4979,6 +4979,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/typeInfo/asInLoop.kt");
}
@TestMetadata("implicitSmartCastedThis.kt")
public void testImplicitSmartCastedThis() throws Exception {
doTest("compiler/testData/codegen/box/typeInfo/implicitSmartCastedThis.kt");
}
@TestMetadata("inheritance.kt")
public void testInheritance() throws Exception {
doTest("compiler/testData/codegen/box/typeInfo/inheritance.kt");
@@ -4999,6 +5004,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/typeInfo/primitiveTypeInfo.kt");
}
@TestMetadata("smartCastedThis.kt")
public void testSmartCastedThis() throws Exception {
doTest("compiler/testData/codegen/box/typeInfo/smartCastedThis.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/typeMapping")