Make 'controller' field package-private
To make it accessible from nested lambdas #KT-12974 Fixed
This commit is contained in:
@@ -58,7 +58,7 @@ class CoroutineCodegen(
|
||||
|
||||
override fun generateClosureBody() {
|
||||
v.newField(
|
||||
JvmDeclarationOrigin.NO_ORIGIN, Opcodes.ACC_PRIVATE or Opcodes.ACC_VOLATILE,
|
||||
JvmDeclarationOrigin.NO_ORIGIN, AsmUtil.NO_FLAG_PACKAGE_PRIVATE or Opcodes.ACC_VOLATILE,
|
||||
COROUTINE_CONTROLLER_FIELD_NAME,
|
||||
typeMapper.mapType(controllerType).descriptor, null, null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user