JVM_IR: prefer to move, not copy, suspend lambda bodies

Copying breaks reflection metadata.
This commit is contained in:
pyos
2020-02-06 16:00:17 +01:00
committed by Ilmir Usmanov
parent 5acb3e14fb
commit 06408011f0
7 changed files with 111 additions and 62 deletions
@@ -24445,6 +24445,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
public void testReflectOnLambdaInStaticField() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInStaticField.kt");
}
@TestMetadata("reflectOnLambdaInSuspend.kt")
public void testReflectOnLambdaInSuspend() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInSuspend.kt");
}
@TestMetadata("reflectOnLambdaInSuspendLambda.kt")
public void testReflectOnLambdaInSuspendLambda() throws Exception {
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInSuspendLambda.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/reflection/mapping")