You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classFoo {
def xxx
classBar {
def xxx
}
classBaz {
def xxx
}
voidmeth() {
newBar().with {
newBaz().with {
xxx // refers to Baz.xxx
owner.xxx refers to Bar.xxx
getOwner().xxx // refers to Bar.xxx
owner.owner.xxx // refers to Foo.xxx
getOwner().getOwner().xxx // refers to Foo.xxxthis.xxx // refers to Foo.xxx
thisObject.xxx // refers to Foo.xxx
getThisObject().xxx // refers to Foo.xxx
}
}
}
}
With the nested closures, type inferencing of expressions like "owner.owner.xxx" breaks down and "xxx" is shown as underlined (unknown). These can be generated from content assist now (see #803 and #364) so they should infer correctly once inserted to avoid confusion.
The text was updated successfully, but these errors were encountered:
Consider the following:
With the nested closures, type inferencing of expressions like "owner.owner.xxx" breaks down and "xxx" is shown as underlined (unknown). These can be generated from content assist now (see #803 and #364) so they should infer correctly once inserted to avoid confusion.
The text was updated successfully, but these errors were encountered: