JVM IR: Initialize parent field in InlineCallableReferenceToLambda
This commit is contained in:
committed by
Alexander Udalov
parent
c2eab08cc9
commit
8c9ebc1bf9
+2
@@ -84,6 +84,7 @@ internal class InlineCallableReferenceToLambdaPhase(val context: JvmBackendConte
|
|||||||
returnType = field.type
|
returnType = field.type
|
||||||
isSuspend = false
|
isSuspend = false
|
||||||
}.apply {
|
}.apply {
|
||||||
|
parent = currentDeclarationParent
|
||||||
val boundReceiver = expression.dispatchReceiver ?: expression.extensionReceiver
|
val boundReceiver = expression.dispatchReceiver ?: expression.extensionReceiver
|
||||||
|
|
||||||
val receiver =
|
val receiver =
|
||||||
@@ -140,6 +141,7 @@ internal class InlineCallableReferenceToLambdaPhase(val context: JvmBackendConte
|
|||||||
returnType = referencedFunction.returnType
|
returnType = referencedFunction.returnType
|
||||||
isSuspend = referencedFunction.isSuspend
|
isSuspend = referencedFunction.isSuspend
|
||||||
}.apply {
|
}.apply {
|
||||||
|
parent = currentDeclarationParent
|
||||||
for ((index, argumentType) in argumentTypes.withIndex()) {
|
for ((index, argumentType) in argumentTypes.withIndex()) {
|
||||||
addValueParameter {
|
addValueParameter {
|
||||||
name = Name.identifier("p$index")
|
name = Name.identifier("p$index")
|
||||||
|
|||||||
Reference in New Issue
Block a user