diff options
author | Seiei Miyagi <hanachin@gmail.com> | 2019-04-23 00:01:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-04-23 12:16:14 +0900 |
commit | ae07b66aaa092c59ac9d544c9b582712290dc357 (patch) | |
tree | 1f2c72d2dcb726d2cb35ec5996515c6fc0c5f2dd /test | |
parent | ea520ca9273699fc1c77a71bbeba4b6e06ccfc6c (diff) | |
download | ruby-ae07b66aaa092c59ac9d544c9b582712290dc357.tar.gz |
Fix internal error of `->x:@2{}`
[Fix GH-2139] [Bug #15783]
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 6e397a9c00..488962b003 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1301,6 +1301,7 @@ eom assert_syntax_error('->(){@1}', /ordinary parameter is defined/) assert_syntax_error('->(x){@1}', /ordinary parameter is defined/) assert_syntax_error('->x{@1}', /ordinary parameter is defined/) + assert_syntax_error('->x:@2{}', /ordinary parameter is defined/) assert_syntax_error('proc {@1 = nil}', /Can't assign to numbered parameter @1/) assert_syntax_error('proc {@01}', /leading zero/) assert_syntax_error('proc {@1_}', /unexpected/) |