diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-09-04 00:07:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-09-24 21:57:54 +0900 |
commit | ea68bb914a3c806a1c5188993b96791a76ab0849 (patch) | |
tree | 085fe4bbf44e546143ba2ee950298bf269785d7a /bootstraptest/test_syntax.rb | |
parent | e73cc3eead75b27eabf93a7163bed511f2bb3b17 (diff) |
Changed numbered parameter prefix
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2431
Diffstat (limited to 'bootstraptest/test_syntax.rb')
-rw-r--r-- | bootstraptest/test_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index d06ebc9281..a111990a1f 100644 --- a/bootstraptest/test_syntax.rb +++ b/bootstraptest/test_syntax.rb @@ -532,7 +532,7 @@ end assert_syntax_error "unterminated string meets end of file", '().."', '[ruby-dev:29732]' assert_equal %q{[]}, %q{$&;[]}, '[ruby-dev:31068]' assert_syntax_error "syntax error, unexpected *, expecting '}'", %q{{*0}}, '[ruby-dev:31072]' -assert_syntax_error "leading zero is not allowed as a numbered parameter", %q{@0..0}, '[ruby-dev:31095]' +assert_syntax_error "`@0' is not allowed as an instance variable name", %q{@0..0}, '[ruby-dev:31095]' assert_syntax_error "identifier $00 is not valid to get", %q{$00..0}, '[ruby-dev:31100]' assert_syntax_error "identifier $00 is not valid to set", %q{0..$00=1} assert_equal %q{0}, %q{[*0];0}, '[ruby-dev:31102]' |