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

Functions with default values in conditionals cause a crash #1295

Open
alangpierce opened this issue Mar 24, 2018 · 0 comments
Open

Functions with default values in conditionals cause a crash #1295

alangpierce opened this issue Mar 24, 2018 · 0 comments
Assignees
Labels

Comments

@alangpierce
Copy link
Member

decaffeinate is crashing on my CoffeeScript input:

if (arg = a) -> b then c

(repl)

I get this error:

MainStage failed to parse: unexpected if
> 1 | if (arg) -> (arg ?= a); b then c
    | ^^
@alangpierce alangpierce self-assigned this Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant