Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block and Splat issue #500

Closed
ryanstout opened this issue Feb 6, 2014 · 4 comments
Closed

Block and Splat issue #500

ryanstout opened this issue Feb 6, 2014 · 4 comments

Comments

@ryanstout
Copy link
Contributor

I'm seeing this in pass my one arg and a nil into the *args in foo:

class Foo
    def foo(*args, &block)
      puts args.inspect
    end
end

class Bar < Foo
    def foo(a, &block)
        super(a, &block)
    end
end

Bar.new.foo(1)

The output:

[1, nil]
@meh meh added the bug label Feb 7, 2014
@meh
Copy link
Member

meh commented Feb 7, 2014

Yet another super bug.

@ryanstout
Copy link
Contributor Author

Every time you say super bug, I think "super bug" like a normal bug but super.

@Strech
Copy link
Contributor

Strech commented Feb 7, 2014

super bug 😂

@elia elia added the super label May 5, 2015
@elia
Copy link
Member

elia commented Apr 1, 2016

fixed on master

@elia elia closed this as completed Apr 1, 2016
hmdne pushed a commit to hmdne/opal that referenced this issue Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants