groovy中的Unknown type: METHOD_DEF错误
我在groovy类中写了def repeat(){
for(i in 0..3){
println "hello";
}
}
系统报错
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
D:\workspace\test\groovy\src\groovytest\groovytest.groovy: 19: Unknown type: METHOD_DEF at line: 19 column: 3. File: D:\workspace\test\groovy\src\groovytest\groovytest.groovy @ line 19, column 3.
def defineUI() {
^
1 error
[解决办法]
不懂帮顶!