Ambiguous method call with groovy

Answered

After updating to Intellij 2019.1.3 Build #IC-191.7479.19 this error is shown in the IDE (compiling runs fine) with groovy (2.4.x)

import groovy.transform.CompileStatic

@CompileStatic
class AmbigousProblem {

class A{

}

void methodA(Object[] objects){

}

void methodA(Class... classes){}

void ambigous(){
methodA(A)
}
}

Calling methodA(A) i get: "Method call is ambiguous"
This did not happen on the last 2018 version.

I searched for similar problems and i restarted/invalidated caches, no luck.

 

0

Please sign in to leave a comment.