Issue Type: Improvement Improvement
Affects Versions: JRuby 1.7.0.RC1
Assignee: Thomas E Enebo
Created: 26/Sep/12 12:55 AM
Description:

ruby -w -e "def foo() a = 2; end"
will produce a warning
-e:1: warning: assigned but unused variable - a
in YARV Ruby 1.9.3p194, but under JRuby, it doesn't produce a warning

$ ruby -w -e "def foo() a = 2; end"
-e:1: warning: assigned but unused variable - a
$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
$ rbenv shell jruby-1.7.0-rc1
$ ruby --version
jruby 1.7.0.RC1 (1.9.3p203) 2012-09-25 8e849de on Java HotSpot(TM) 64-Bit Server VM 1.7.0_04-b21 [darwin-x86_64]
$ ruby -w -e "def foo() a = 2; end"

Project: JRuby
Priority: Minor Minor
Reporter: Andrew Grimm
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to