Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.0-JSR-3
-
None
-
Windows
Description
// demo.groovy
println [1,2].collect
run the file and below exception is thrown
Caught: groovy.lang.MissingPropertyException: No such property: println for class: demo
at demo.run(e:\groovy\demo.groovy:2)
at demo.main(e:\groovy\demo.groovy)
but for file
//demo2.groovy
println ([1,2].collect{it + 1}
)
It works well.