Intellij does not propose to create ctor on incompatible ctor call

Answered

Hello,

Intellij does not propose to create constructors, methods etc. that are called with an incompatible parameter list in my groovy source file, where it does in a Java file.
In the following snippet I expect Intellij to create a ctor GroovyTest(String, String) on Alt-Enter.

Example:



class GroovyTest{
    public static void main(String[] args){
        String param1 = "foo"
        String param2 = "bar"
        
        new GroovyTest(param1, param2)  // Error - I expect Intellij creates a GroovyTest(String, String) ctor on Alt-Enter
    }
}

Do I have to reconfigure something?

Thanks

Jan

0

Please sign in to leave a comment.