summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-16 18:34:31 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-16 18:34:31 +0900
commitf38b3e8c707ebdcad05aa9485cf1760640b74fbb (patch)
tree62573eb80cb579ea0e5bd3ce2274f271d9accbc0 /test
parent62baad9fe17077f8881e8512234cf55563aa9fca (diff)
Fixed the location of args node with numbered parameter
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_syntax.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 01f3295101..b93062cf2d 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -1449,6 +1449,8 @@ eom
assert_valid_syntax("->{#{c};->{_1};end;_1}\n")
assert_valid_syntax("->{_1;#{c};->{_1};end}\n")
end
+
+ 1.times {_1}
end
def test_value_expr_in_condition