As a follow-up to #287. Consider the following code:
package c
class C {
class MyBean {
String foo
int bar
}
class AnotherClass {
int createInt() {
return 1
}
String createString() {
return 'foo'
}
}
void doSomething() {
def a = new AnotherClass()
def b = new MyBean(foo: a.cre|)
}
}
Invoking code assist at "|" shows proposal in a non-optimal order, because a.createInt() is shown before a.createString(), which should however be he preferred choice since MyBean.foo is a String.
As a follow-up to #287. Consider the following code:
Invoking code assist at "|" shows proposal in a non-optimal order, because
a.createInt()is shown beforea.createString(), which should however be he preferred choice sinceMyBean.foois a String.