Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

method_missing does not expand array arguments #221

Open
DiKorsch opened this issue Jan 24, 2013 · 2 comments
Open

method_missing does not expand array arguments #221

DiKorsch opened this issue Jan 24, 2013 · 2 comments

Comments

@DiKorsch
Copy link
Contributor

class Foo
  def method_missing(*symbol, &block)
    p symbol
  end
end

a = [1, 2, 3]
Foo.new.x(*a) {
  # do something
}

MRI output:
[:x, 1, 2, 3]
MagLev output:
[:x, [1, 2, 3]]

@timfel
Copy link
Member

timfel commented Jan 28, 2013

that's fixed

@timfel timfel closed this as completed Jan 28, 2013
@DiKorsch
Copy link
Contributor Author

it fixed, but not merged in master-1.9 yet

@DiKorsch DiKorsch reopened this Jan 31, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants