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
Prior to Groovy 5, a special case exists within classgen that selects static outer class field for unresolved this property expressions. Consider the following:
classPogo {
privatestatic value =1voidtest() {
Map<String,Object> map = [value: 2]
map.with {
print value
printthis.value
def that =thisprint that.value
}
}
}
newPogo().test()
This script prints "111" indicating that all "value" expressions come from the static field. However, the implicit-this occurrence is highlighted as a dynamic (map) property.
The text was updated successfully, but these errors were encountered:
Additionally, the field checks added for #1468 are not restricted to static fields, which the classgen checking is limited to. But they are restricted to implicit-this (aka variable expressions) which the classgen checking is not limited to.
Prior to Groovy 5, a special case exists within classgen that selects static outer class field for unresolved
this
property expressions. Consider the following:This script prints "111" indicating that all "value" expressions come from the static field. However, the implicit-
this
occurrence is highlighted as a dynamic (map) property.The text was updated successfully, but these errors were encountered: