Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.5
-
None
-
Java version AdoptOpenJDK (build 25.262-b10, mixed mode)
Gradle version 6.6.1
Groovy version 3.0.5
Description
Compile error: [Static type checking] - Cannot find matching method foo.Foo#vfunc(java.lang.String, java.lang.Integer).
If i is declared as int, then it compiles okay.
package foo import groovy.transform.CompileStatic @CompileStatic class Foo { private void vfunc(String s, int... ints) {} void caller() { Integer i = 1 vfunc('foo', i) } }