Fix codegen box tests for language version 1.4

Since API version 1.4, NullPointerException is thrown for casts of null
to any type instead of TypeCastException.
This commit is contained in:
Alexander Udalov
2020-01-20 16:55:53 +01:00
parent 6a90dc2efe
commit f48bdc1fcb
17 changed files with 115 additions and 51 deletions
@@ -2941,6 +2941,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
public void testSimpleSafe() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/checkCast/simpleSafe.kt");
}
@TestMetadata("simple_1_3.kt")
public void testSimple_1_3() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/checkCast/simple_1_3.kt");
}
}
@TestMetadata("compiler/testData/codegen/boxInline/reified/defaultLambda")