JRuby

[1.9] splat of array at front of assignment broken (same for other grammatical constructs)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.6
  • Fix Version/s: JRuby 1.2
  • Component/s: Parser
  • Labels:
    None
  • Number of attachments :
    0

Description

a = [1,2]
b = *a, 2
p b

This should equal '[1, 2, 2]' but is [[1,2], 2]. I need splats working properly on 1.9 so I can copy this logic in refactoring case/when nodes in 1.8 so I may as well fix this sooner than later. If splat is later in the chain then there is no issue.

Activity

Hide
Charles Oliver Nutter added a comment -

Fixed in compiler in r8747.

Show
Charles Oliver Nutter added a comment - Fixed in compiler in r8747.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: