Skip to content

Missing code assist in map-style constructor #286

@mauromol

Description

@mauromol

From a code snippet in the old GRECLIPSE-1800.

Consider the following:

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| ) 
    } 
}

Trying to invoke code assist at | brings no suggestions. I would expect to see c.C.AnotherClass.createString() (since MyBean.foo is of type String) suggested first, then c.C.AnotherClass.createInt() next.

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