JRuby

parsing differs from MRI

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.4
  • Fix Version/s: JRuby 1.5
  • Component/s: Parser
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

http://www.ruby-forum.com/topic/203891#887881

def go
  a = true
  b = nil
  return a.nil? or b.nil?
end

should probably emit an error.

Activity

Hide
Vladimir Sizikov added a comment -
Show
Vladimir Sizikov added a comment - The same for break/next. RubySpecs have been added: http://github.com/rubyspec/rubyspec/commit/38bd0643c3e7bdba0aecf5eb91b0be9b56b5b5d7
Hide
Charles Oliver Nutter added a comment -

Marking as a parser issue.

Show
Charles Oliver Nutter added a comment - Marking as a parser issue.
Hide
Thomas E Enebo added a comment -

Fixed in commit 04ee9fb

Show
Thomas E Enebo added a comment - Fixed in commit 04ee9fb

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: