Consider the following:
class C extends Script {
private Object o = new Object() {}
@Override
def run() {
print("")
}
}
or
@Field Object o = new Object() {}
void test() {
print("")
}
The anon. inner class that initialized field "o" cannot be located and so type inferencing breaks down.

Consider the following:
or
The anon. inner class that initialized field "o" cannot be located and so type inferencing breaks down.