Don't capture primary constructor variables
This commit is contained in:
+4
@@ -124,6 +124,10 @@ class ClosureAnnotator {
|
|||||||
includeInParent(closureBuilder)
|
includeInParent(closureBuilder)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
classDescriptor.unsubstitutedPrimaryConstructor?.valueParameters?.forEach {
|
||||||
|
closureBuilder.declareVariable(it)
|
||||||
|
}
|
||||||
|
|
||||||
closuresStack.push(closureBuilder)
|
closuresStack.push(closureBuilder)
|
||||||
declaration.acceptChildrenVoid(this)
|
declaration.acceptChildrenVoid(this)
|
||||||
closuresStack.pop()
|
closuresStack.pop()
|
||||||
|
|||||||
Reference in New Issue
Block a user