Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.12
-
None
Description
foo/Foo.groovy
package foo class Foo {}
test/test.groovy
package test import foo.Foo as Bar class Bar {} def regular = new Bar() def anonymous = new Bar() {} println regular.class // class test.Bar println anonymous.class.superclass // class foo.Foo
Either both of the invocations should use alias or both of them should use class defined in the same file.
Attachments
Issue Links
- is cloned by
-
GROOVY-11224 Reconsider name duplication for groovysh
- Closed