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)
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)