Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.0-beta-2, 2.4.13
-
None
Description
bugs.groovy
import static A.bar class A { static bar = "A" } def bar() { "bar" } @groovy.transform.CompileStatic def usage() { bar() } println usage()
13: [Static type checking] - Cannot find matching method A#bar(). Please check if the declared type is right and if the method exists. @ line 13, column 3. bar() ^
Attachments
Issue Links
- relates to
-
GROOVY-7490 CompileStatic confuses statically importing an instance and statically importing a method
- Closed
-
GROOVY-11056 modified behavior of variable resolution within Closure
- Closed