JVM IR: fix smart cast on argument of 'throw'

#KT-48163 Fixed
This commit is contained in:
Alexander Udalov
2021-08-09 16:21:33 +02:00
parent cb37a05b79
commit afacff326d
9 changed files with 67 additions and 5 deletions
@@ -40424,6 +40424,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/smartCasts/kt44942.kt");
}
@Test
@TestMetadata("kt48163_smartCastToThrowable.kt")
public void testKt48163_smartCastToThrowable() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt48163_smartCastToThrowable.kt");
}
@Test
@TestMetadata("lambdaArgumentWithoutType.kt")
public void testLambdaArgumentWithoutType() throws Exception {
@@ -91,6 +91,12 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/charConstant.kt");
}
@Test
@TestMetadata("checkcastOnThrow.kt")
public void testCheckcastOnThrow() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcastOnThrow.kt");
}
@Test
@TestMetadata("collectionStubs.kt")
public void testCollectionStubs() throws Exception {