JVM_IR KT-50076 avoid CHECKCAST on moved dispatch receiver parameter

This commit is contained in:
Dmitry Petrov
2021-12-13 10:33:04 +03:00
committed by Space
parent 6f148c594f
commit df460a842b
16 changed files with 223 additions and 11 deletions
@@ -10067,6 +10067,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/coroutines/stopAfter.kt");
}
@Test
@TestMetadata("suspendCallInSuperInterfaceCallArguments.kt")
public void testSuspendCallInSuperInterfaceCallArguments() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendCallInSuperInterfaceCallArguments.kt");
}
@Test
@TestMetadata("suspendCallsInArguments.kt")
public void testSuspendCallsInArguments() throws Exception {
@@ -1073,6 +1073,18 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
public void testKt22714() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcast/kt22714.kt");
}
@Test
@TestMetadata("noCheckcastOnDelegatingDefaultImplsCall.kt")
public void testNoCheckcastOnDelegatingDefaultImplsCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcast/noCheckcastOnDelegatingDefaultImplsCall.kt");
}
@Test
@TestMetadata("noCheckcastOnSuper.kt")
public void testNoCheckcastOnSuper() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcast/noCheckcastOnSuper.kt");
}
}
@Nested