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; | |
} |