Consider the following Groovy class:
package test8
class A {
protected def m() { }
Object p = new Object() {
String toString() {
m()
}
}
void init() {
def whatever = new Object() {
def something() {
m()
}
}
}
}
What I see is that m() call from the definition of A.p field (with an inner class) is underlined.
Instead m() call from the definition of whatever local variable is not underlined, by nevertheless it seems like the call is not recognized (F2 and F3 do not work).
Funny enough, if you comment out the p field definition, then the second call to m() becomes underlined :-)
Consider the following Groovy class:
What I see is that
m()call from the definition ofA.pfield (with an inner class) is underlined.Instead
m()call from the definition ofwhateverlocal variable is not underlined, by nevertheless it seems like the call is not recognized (F2 and F3 do not work).Funny enough, if you comment out the p field definition, then the second call to
m()becomes underlined :-)