From bae6037f00785c5567040b68a0c6c2a1f530d2f4 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Mon, 20 Jul 2020 12:33:13 +0300 Subject: [PATCH] JVM: fields for suspend lambda parameters are synthetic --- .../org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt index 7a1f79a7b43..e56c5582191 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineCodegen.kt @@ -236,7 +236,7 @@ class CoroutineCodegenForLambda private constructor( val fieldInfo = parameter.getFieldInfoForCoroutineLambdaParameter() v.newField( OtherOrigin(parameter), - Opcodes.ACC_PRIVATE, + Opcodes.ACC_PRIVATE + Opcodes.ACC_SYNTHETIC, fieldInfo.fieldName, fieldInfo.fieldType.descriptor, null, null )