Consider the following:
class Outer {
private static int VALUE = 1
static class Inner {
@Delegate Map<String,?> map
void test() {
VALUE
}
}
}
Variable expression "VALUE" is highlighted as map property. Absent of fix for GROOVY-10985, this resolves to the outer static field.

Consider the following:
Variable expression "VALUE" is highlighted as map property. Absent of fix for GROOVY-10985, this resolves to the outer static field.