Skip to content

Enable type-aware code assist in map-style constructor call #289

@mauromol

Description

@mauromol

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions