From 7c763fa26c7b220e6307448d4bc5fb8143bf68cd Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 10 Oct 2000 07:03:36 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 85cc49bce..395967962 100644 --- a/parse.y +++ b/parse.y @@ -4342,11 +4342,6 @@ assign_in_cond(node) switch (nd_type(node->nd_value)) { case NODE_LIT: case NODE_STR: - case NODE_DSTR: - case NODE_XSTR: - case NODE_DXSTR: - case NODE_EVSTR: - case NODE_DREGX: case NODE_NIL: case NODE_TRUE: case NODE_FALSE: @@ -4354,12 +4349,19 @@ assign_in_cond(node) rb_warn("found = in conditional, should be =="); return 1; + case NODE_DSTR: + case NODE_XSTR: + case NODE_DXSTR: + case NODE_EVSTR: + case NODE_DREGX: default: break; } +#if 0 if (assign_in_cond(node->nd_value) == 0) { rb_warning("assignment in condition"); } +#endif return 1; } -- cgit