Follow up of #364. Related to the discussion made on #674.
Consider this Groovy class:
package test45
class Test45 {
static class Foo {
String someString = 'foo'
}
static class Bar {
String someString = 'bar'
Foo foo = new Foo()
void doSomething() {
foo.with {
println "someString inside with closure = $someString"
println "someString of owner inside with closure = $owner.someString"
someS|
}
}
}
static main(args) {
Bar b = new Bar()
println "b.someString = $b.someString"
println "b.foo.someString = $b.foo.someString"
b.doSomething()
}
}
Invoke code assist at "|": I would expect to see Foo.someString proposed before Bar.someString, because in this context (closure with delegation to self) it is reasonably the most natural choice.
Follow up of #364. Related to the discussion made on #674.
Consider this Groovy class:
Invoke code assist at "|": I would expect to see
Foo.someStringproposed beforeBar.someString, because in this context (closure with delegation toself) it is reasonably the most natural choice.