New issue 401 by gromop...@gmail.com: Incorrect source line mapping for if
inside for
http://code.google.com/p/groovypptest/issues/detail?id=401
@Typed
class Test {
public static void main(String[] args) {
for (c in [1,2]) {
if (args) {
println 'hello'
} else {
println 'goodbye'
}
}
}
}
-------
Debug this code. Stop on a breakpoint on the first line (for). Step over
it. You should find yourself on 'if (args)', but highlighted is the line
with 'else'. Similarly, breakpoints put on 'if' line are ignored. Doesn't
happen in plain Groovy