[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
@@ -7638,6 +7638,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/coroutines/kt46813.kt");
}
@TestMetadata("kt49645.kt")
public void testKt49645() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt49645.kt");
}
@TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt");