KT-53846 LT: Copy context receivers to secondary constructors
This commit is contained in:
committed by
Space Team
parent
873d9b565a
commit
752ba433cc
+1
@@ -1051,6 +1051,7 @@ class DeclarationsConverter(
|
||||
val (body, _) = convertFunctionBody(block, null, allowLegacyContractDescription = true)
|
||||
this.body = body
|
||||
context.firFunctionTargets.removeLast()
|
||||
this.contextReceivers.addAll(convertContextReceivers(secondaryConstructor.getParent()!!.getParent()!!))
|
||||
}.also {
|
||||
it.containingClassForStaticMemberAttr = currentDispatchReceiverType()!!.lookupTag
|
||||
target.bind(it)
|
||||
|
||||
Reference in New Issue
Block a user