JVM_IR: fix name of received field for suspend lambdas
$ at the start caused AnonymousObjectTransformer to skip the field.
This commit is contained in:
committed by
Ilmir Usmanov
parent
068d3f4beb
commit
d4b0151f51
+2
-1
@@ -110,7 +110,8 @@ private class AddContinuationLowering(private val context: JvmBackendContext) :
|
||||
|
||||
val receiverField = info.function.extensionReceiverParameter?.let {
|
||||
assert(info.arity != 0)
|
||||
addField("\$p", it.type)
|
||||
// Do not put '$' at the start, to avoid being caught by inlineCodegenUtils.isCapturedFieldName()
|
||||
addField("p\$", it.type)
|
||||
}
|
||||
|
||||
val parametersFields = info.function.valueParameters.map { addField(it.name.asString(), it.type) }
|
||||
|
||||
Reference in New Issue
Block a user