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

Rock parses function arguments with default values incorrectly #990

Open
marcusnaslund opened this issue Apr 6, 2016 · 1 comment
Open

Comments

@marcusnaslund
Copy link
Contributor

All of these should of course be equal, but are unfortunately not:

foo: func (a := false, b := true) // works
moo: func (a: Bool = false, b := true) // works
bar: func (a := false, b: Bool = true) // does not work
car: func (a: Bool = false, b: Bool = true) // does not work

For example, bar fails with error Couldn't unwrap decl 'false: Bool', which suggests rock parses something incorrectly.

@alexnask
Copy link
Collaborator

alexnask commented Apr 7, 2016

Huh, weird.
Will be looking into it.

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