1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled as

NODE_STR.  [ruby-dev:38968]

* bootstraptest/test_syntax.rb: add a test for above.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2009-07-30 18:02:37 +00:00
parent 22acf29509
commit 3129ed327e
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,10 @@
Fri Jul 31 02:57:39 2009 Yusuke Endoh <mame@tsg.ne.jp>
* parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled as
NODE_STR. [ruby-dev:38968]
* bootstraptest/test_syntax.rb: add a test for above.
Fri Jul 31 00:55:48 2009 Yusuke Endoh <mame@tsg.ne.jp> Fri Jul 31 00:55:48 2009 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_module.rb (test_ancestors, test_included_modules): * test/ruby/test_module.rb (test_ancestors, test_included_modules):

View file

@ -828,3 +828,6 @@ assert_normal_exit %q{
p a.compact! p a.compact!
} }
assert_equal 'ok', %q{
"#{}""#{}ok"
}, '[ruby-dev:38968]'

View file

@ -7833,9 +7833,7 @@ literal_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
head = tail; head = tail;
} }
else { else {
nd_set_type(tail, NODE_ARRAY); list_concat(head, NEW_ARRAY(tail));
tail->nd_head = NEW_STR(tail->nd_lit);
list_concat(head, tail);
} }
break; break;