Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.8
-
None
-
None
Description
package hello import groovy.transform.CompileStatic import static hello.C.* class C { static foo(a) { 'imported foo' } static bar(a) { 'imported bar' } } class Main { static void main(String[] args) { def main = new Main() println main.foo1() // imported foo println main.bar1() // class bar use(Main) { println main.bar1() // imported bar } } @CompileStatic def foo1() { foo '2' } def bar1() { bar '2' } static foo(String s) { 'class foo' } static bar(String s) { 'class bar' } }