Hi, This code should work in Groovy? I get an error as below, I think that I should change something with delegate.
groovy.lang.MissingMethodException: No signature of method:
ideaGroovyConsole.foo() is applicable for argument types: () values: []
-------------
class Boo {
def boo() {throw new UnsupportedOperationException("should override")}
def foo() { println "foo"}
}
def a = [boo : {
foo()
}] as Boo
a.boo()
-------------
Regards,
Mariusz
