diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-19 19:40:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-19 19:40:44 +0900 |
commit | 2698f13a1f0cc07ef97b7f20502c420b51e9c57d (patch) | |
tree | c7da91f8362d9ff4e1a99ae8969da6cbd568cdb0 /test | |
parent | 6180f1fede487bf5dfdd00cbae2ee7f2b4613a7e (diff) | |
download | ruby-2698f13a1f0cc07ef97b7f20502c420b51e9c57d.tar.gz |
Fixed reserved numbered parameter warning
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index ec6fc25ae4..6209bb3a23 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1459,6 +1459,7 @@ eom assert_syntax_error('proc {@1_}', /unexpected/) assert_syntax_error('proc {@9999999999999999}', /too large/) assert_syntax_error('@1', /outside block/) + assert_warn(/`_2' is used as numbered parameter/) {eval('_2=1')} end def test_value_expr_in_condition |