JVM_IR: do not deep-copy suspend lambdas in initializers
This loses reflection metadata (and also sometimes fails). Which was missing anyway - this is also fixed now. #KT-42554 Fixed
This commit is contained in:
+5
@@ -28774,6 +28774,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
public void testReflectOnLambdaInSuspendLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnLambdaInSuspendLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reflectOnSuspendLambdaInField.kt")
|
||||
public void testReflectOnSuspendLambdaInField() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/lambdaClasses/reflectOnSuspendLambdaInField.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/reflection/mapping")
|
||||
|
||||
Reference in New Issue
Block a user