blob: da78e7b0fd958d68091351aba020869011f8574c [file] [log] [blame]
class S {
def r() {
Closure sin = {x -> Math.sin(x)}
<begin>10.times {
x -> sin x
}<end>
}
}
-----
class S {
def r() {
Closure sin = {x -> Math.sin(x)}
<caret>testMethod(sin)
}
private testMethod(Closure sin) {
10.times {
x -> sin x
}
}
}