jruby -w could warn on mismatched parentheses
---------------------------------------------
Key: JRUBY-5535
URL: http://jira.codehaus.org/browse/JRUBY-5535
Project: JRuby
Issue Type: Improvement
Environment: jruby 1.6.0.RC2 (ruby 1.8.7 patchlevel 330) (2011-02-22
698a5e3) (Java HotSpot(TM) Client VM 1.6.0_18) [Windows 7-x86-java]
Reporter: Roger Pack
Assignee: Thomas E Enebo
This code:
for type in ['daxp', 'prestapedb', 'das', 'in_transit', 'quarantined']
if remaining.length != new.length
end
end
in MRI 1.9 -w
outputs a "useful" error message (useful at times for discovering bugs).
syntax_warnings.rb:6: warning: mismatched indentations at 'end' with 'if' at 5
but not with jruby.
Cheers!
--
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