String as condition of if be parsed as MatchNode
------------------------------------------------
Key: JRUBY-1205
URL: http://jira.codehaus.org/browse/JRUBY-1205
Project: JRuby
Issue Type: Bug
Components: Parser
Affects Versions: JRuby 1.0.0
Reporter: Ye Zheng
The following is buggy code for current JRuby.
if "string"
puts "true"
else
puts "false"
end
The outputs are
C Ruby: true
JRuby: false
We know all objects should be true except false and nil, so it's a bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email