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