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

Bad parsing behaviour for generic arrow type arguments #8824

Closed
JLHwung opened this issue Jan 12, 2022 · 0 comments
Closed

Bad parsing behaviour for generic arrow type arguments #8824

JLHwung opened this issue Jan 12, 2022 · 0 comments
Assignees

Comments

@JLHwung
Copy link

JLHwung commented Jan 12, 2022

// No parse error.
f< <T>(v: T) => T>();

// Parse error. 
f<<T>(v: T) => T>();

Flow version: 0.169.0

Expected behavior

No parse errors. They are equivalent.

Actual behavior

Parsing errors.

Found this issue when working on a similar fix to Babel (babel/babel#14145).

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

3 participants