JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-6129

Multiple assignment with splatted LHS fails to call #to_ary on corresponding object

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: None
    • Labels:
      None
    • Environment:
      --1.9
    • Number of attachments :
      0

      Description

      In this assignment:

      a,(*b),c = 5,x
      

      In MRI 1.9.2, b gets x.to_ary; in JRuby 1.7.0 (1.9 mode), b gets x.

      See rubyspec/language/variables_spec.rb

        Activity

        Hide
        Hiro Asari added a comment -

        This one appears to be fixed on the master.

        Show
        Hiro Asari added a comment - This one appears to be fixed on the master.
        Hide
        Thomas E Enebo added a comment -

        I am seeing this fail in 1.6/master in both interp/JIT.

        Show
        Thomas E Enebo added a comment - I am seeing this fail in 1.6/master in both interp/JIT.

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Martin Harriman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: