def cl = <selection>qwerty</selection>(45){int x -> return x + 1} | |
def qwerty(int i, Closure cl){ | |
def call = cl(42) | |
println (call) | |
return call + i; | |
} | |
----- | |
def call = { int x -> return x + 1 }(42) | |
println(call) | |
def cl = call + 45 | |
def qwerty(int i, Closure cl){ | |
def call = cl(42) | |
println (call) | |
return call + i; | |
} |