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

* parse.y (dsym): garbage returned. (ruby-bugs-ja:PR#358)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2002-11-17 14:01:57 +00:00
parent 8a442aa52a
commit f87abaadcc
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Nov 17 22:57:31 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (dsym): garbage returned. (ruby-bugs-ja:PR#358)
Fri Nov 15 07:40:08 2002 NAKAMURA Hiroshi <nakahiro@sarion.co.jp>
* observer.rb: raise NoMethodError instead of NameError.

View file

@ -1978,11 +1978,10 @@ sym : fname
dsym : tSYMBEG xstring_contents tSTRING_END
{
lex_state = EXPR_END;
if (!$2) {
if (!($$ = $2)) {
yyerror("empty symbol literal");
}
else {
$$ = $2;
switch (nd_type($$)) {
case NODE_STR:
$$->nd_lit = ID2SYM(rb_intern(RSTRING($$->nd_lit)->ptr));