diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-19 17:17:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-25 17:42:59 +0900 |
commit | 26625bc33c32e0945bf727234a3ce6da1eb0ddc4 (patch) | |
tree | c24312596ae11ba9f000a16bfff573dc4d972d19 /test/ripper | |
parent | 86461fc28cd9c05670ece440d337f255b33e6def (diff) | |
download | ruby-26625bc33c32e0945bf727234a3ce6da1eb0ddc4.tar.gz |
[ripper] Quoted label without expression must be a local variable
The difference from 0b8c73aa65add5c57b46b0cfdf4e661508802172 is to
add the result of `string_add` event to marking objects.
```C
RNODE($1)->nd_rval = add_mark_object(p, $$);
```
Diffstat (limited to 'test/ripper')
-rw-r--r-- | test/ripper/test_sexp.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb index d6c7d60f06..9b3a99e522 100644 --- a/test/ripper/test_sexp.rb +++ b/test/ripper/test_sexp.rb @@ -435,6 +435,9 @@ eot [__LINE__, %q{ case 0; in a?:; end }] => nil, + + [__LINE__, %q{ case 0; in "A":; end }] => + nil, } pattern_matching_data.each do |(i, src), expected| define_method(:"test_pattern_matching_#{i}") do |