JVM: Mark suspend lambda receiver as used if callable reference

accesses it.
 #KT-44131 Fixed
This commit is contained in:
Ilmir Usmanov
2021-01-21 10:55:15 +01:00
parent de00f72fa3
commit 704366e531
9 changed files with 87 additions and 22 deletions
@@ -8562,6 +8562,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/fromJava.kt");
}
@Test
@TestMetadata("lambdaParameterUsed.kt")
public void testLambdaParameterUsed() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt");
}
@Test
@TestMetadata("longArgs.kt")
public void testLongArgs() throws Exception {
@@ -8562,6 +8562,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/fromJava.kt");
}
@Test
@TestMetadata("lambdaParameterUsed.kt")
public void testLambdaParameterUsed() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt");
}
@Test
@TestMetadata("longArgs.kt")
public void testLongArgs() throws Exception {