blob: b64a2c353fd4fbdb74d77535492fe4b6acec02c1 [file] [log] [blame]
def cl = <selection>qwerty</selection>{int x -> return x + 1}{int x -> return x + 1}
def qwerty(Closure cl, Closure cl2){
def call = cl(42)
def call1 = cl2(45)
println (call)
return call + call1;
}
-----
def call = { int x -> return x + 1 }(42)
def call1 = { int x -> return x + 1 }(45)
println(call)
def cl = call + call1
def qwerty(Closure cl, Closure cl2){
def call = cl(42)
def call1 = cl2(45)
println (call)
return call + call1;
}