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:
+5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user