JVM: Mark suspend lambda receiver as used if callable reference
accesses it. #KT-44131 Fixed
This commit is contained in:
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user