I'm writing test cases for line continuations (boy, what an exciting
life I lead), and I came across the following inconsistency:
def m1(*args)
puts args.join(', ')
end
def m2(*dummy)
end
m1\
1, 2, 3 #=> 1, 2, 3
m2(m1\
4, 5, 6) #=> 4, 5, 6
However
def m1(*args)
puts args.join(', ')
end
def m2(*dummy)
end
m2(1, m1\
4, 5, 6)
gives
-:9: parse error
4, 5, 6)
^
Is this correct behavior?
Regards
Dave