[JVM_IR] Fix inline class default method codegen.

Do not coroutine transform static inline class replacements that
forward to a default interface suspend method. No boxing has to
take place on return (as the default interface method always
boxes) so we can simply forward the call.

^KT-49645 Fixed
This commit is contained in:
Mads Ager
2021-11-23 15:15:33 +01:00
committed by Alexander Udalov
parent 50f610cfd8
commit 529944fe9c
7 changed files with 69 additions and 5 deletions
@@ -7730,6 +7730,12 @@ public class NativeExtBlackBoxTestGenerated extends AbstractNativeBlackBoxTest {
runTest("compiler/testData/codegen/box/coroutines/kt49168.kt");
}
@Test
@TestMetadata("kt49645.kt")
public void testKt49645() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt49645.kt");
}
@Test
@TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop() throws Exception {