Throw NPE instead of TypeCastException since 1.4

#KT-22275 In Progress
This commit is contained in:
Alexander Udalov
2019-08-06 11:21:48 +02:00
parent 2baddb029c
commit e207c96336
9 changed files with 48 additions and 13 deletions
@@ -2696,6 +2696,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/casts/asSafeForConstants.kt");
}
@TestMetadata("asThrowsNpe_1_4.kt")
public void testAsThrowsNpe_1_4() throws Exception {
runTest("compiler/testData/codegen/box/casts/asThrowsNpe_1_4.kt");
}
@TestMetadata("asUnit.kt")
public void testAsUnit() throws Exception {
runTest("compiler/testData/codegen/box/casts/asUnit.kt");