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

False error report on default arguments with flow-annotations #12

Open
bitspook opened this issue Dec 22, 2015 · 0 comments
Open

False error report on default arguments with flow-annotations #12

bitspook opened this issue Dec 22, 2015 · 0 comments
Assignees
Labels

Comments

@bitspook
Copy link
Contributor

    getDatesToDisplay = (startDate : string, numberOfDatesToDisplay: number, language : string = 'en') => { ... }

This function gets transpiled (by pragmatist) just fine however canonical complains it as parse error.

Or is there some other syntax for default params with flow notation I am missing?

@bitspook bitspook changed the title Default arguments with flow-annotations False error report on default arguments with flow-annotations Dec 22, 2015
@gajus gajus added the bug label Dec 25, 2015
@gajus gajus self-assigned this Dec 25, 2015
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

2 participants