blob: 3fc29c5c247de94b438b3a568f48c7d98805b6be [file] [log] [blame]
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;
}