Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
Description
If I add a closure constant in an interface, I can't call it with V.c("hello").
Instead, I have to do V.c.call("hello")
groovy> interface V { Closure c =
{ println it } }
groovy> V.c("hello")
groovy> go
Caught: java.lang.NullPointerException
at CommandLine.run(CommandLine.groovy:2)