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

Fix TS parsing bug when seeing a generics-like expression #438

Merged
merged 1 commit into from Mar 18, 2019

Conversation

alangpierce
Copy link
Owner

Fixes #408

If we see a<b>, we were already looking at the next token to see if it's an
open-paren (meaning this is a function call with a type argument) or a backtick
(meaning this is a tagged template literal with a type argument), but we weren't
properly bailing out if it was neither of those, which put the parser in a bad
state.

Fixes #408

If we see `a<b>`, we were already looking at the next token to see if it's an
open-paren (meaning this is a function call with a type argument) or a backtick
(meaning this is a tagged template literal with a type argument), but we weren't
properly bailing out if it was neither of those, which put the parser in a bad
state.
@alangpierce alangpierce merged commit 36b9d76 into master Mar 18, 2019
@alangpierce alangpierce deleted the fix-generics-lookalike branch March 18, 2019 17:24
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

Successfully merging this pull request may close these issues.

None yet

1 participant