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

KeywordArgs with unknown keywords? #241

Open
indigoviolet opened this issue Nov 23, 2016 · 2 comments
Open

KeywordArgs with unknown keywords? #241

indigoviolet opened this issue Nov 23, 2016 · 2 comments

Comments

@indigoviolet
Copy link
Contributor

indigoviolet commented Nov 23, 2016

def foo(**args, &blk)
   puts blk.call
   puts args
   nil
end

How would I write a contract for this function, so that all these cases are valid:

foo(a: 2) { }
foo { }
@egonSchiele
Copy link
Owner

seems related to #244

@egonSchiele
Copy link
Owner

Thank you for filing these tickets! I don't have time to fix these at the moment, but I'm happy to merge any PRs that you send over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants