test/something.rb in ParseTree-1.3.7 vs test/something.rb in ParseTree-1.4.0
- old
+ new
@@ -122,9 +122,15 @@
return result
end
# Other edge cases:
+ def opt_args(arg1, arg2 = 42, *args)
+ arg3 = arg1 * arg2 * 7
+ puts(arg3.to_s)
+ return "foo"
+ end
+
def multi_args(arg1, arg2)
arg3 = arg1 * arg2 * 7
puts(arg3.to_s)
return "foo"
end