Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.6-beta-1
-
None
-
None
Description
the following code can not execute properly, exceptions:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script12: 2: Constructor not permitted within an interface. at line: 2 column: 5. File: Script12 @ line 2, column 5.
1 error
it seems that the method hello has the same name with annotation hello and groovy mistake method hello as a constructor
@interface hello { String hello() } println "test"