Consider the following:
class Pogo {
String foo
}
class Test {
void meth(Pogo pogo) {
pogo.with {
def f = foo
foo = 'bar'
foo += 'baz'
}
}
}
Searching for references of Pogo#foo fails to find the occurrences in the with block of Test#meth. Code hover and select also fails to refer back to the property. If @CompileStatic is added to the class or method, the operations work as expected.
Consider the following:
Searching for references of Pogo#foo fails to find the occurrences in the with block of Test#meth. Code hover and select also fails to refer back to the property. If
@CompileStaticis added to the class or method, the operations work as expected.