blob: 9dc7b98a2529397c2fbf89932d929417079c4cb7 [file] [log] [blame]
def cl = <selection>qwerty</selection>({int x -> return x + 1})
def qwerty(Closure cl){
def call = cl.call()
println (call)
return call;
}
-----
def call = { int x -> return x + 1 }.call()
println(call)
def cl = call
def qwerty(Closure cl){
def call = cl.call()
println (call)
return call;
}