defined? for expression that is assigning multiple variables should return
"assignment"
---------------------------------------------------------------------------------------
Key: JRUBY-4645
URL: http://jira.codehaus.org/browse/JRUBY-4645
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Environment: jruby 1.5.0.dev
Reporter: Vladimir Sizikov
{noformat}
jruby -e "p defined?((a,b = 1,2))" ==> "expression"
{noformat}
BUT, for MRI:
{noformat}
pik ruby -e "p defined?((a,b = 1,2))"
IronRuby 0.9.3.0 on .NET 2.0.0.0
"assignment"
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
"assignment"
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
"assignment"
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
"assignment"
ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mswin32]
"assignment"
ruby 1.9.0 (2008-06-20 revision 17482) [i386-mswin32]
"assignment"
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
"assignment"
ruby 1.9.1p0 (2009-01-30 revision 21907) [x64-mswin64_80]
"assignment"
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mswin32]
"assignment"
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
"assignment"
ruby 1.9.2dev (2009-07-18) [i386-mswin32]
"assignment"
ruby 1.9.2dev (2009-11-12 trunk 25723) [i386-mingw32]
"assignment"
ruby 1.9.2dev (2010-02-28 trunk 26782) [i386-mingw32]
"assignment"
ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]
"assignment"
{noformat}
--
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