[go: nahoru, domu]

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

TSTypeCastExpression should not be inside call parameters #10939

Merged

Conversation

JLHwung
Copy link
Contributor
@JLHwung JLHwung commented Dec 29, 2019
Q                       A
Fixed Issues Fixes #10861
Tests Added + Pass? Yes
License MIT

The TypeScript plugin will check TSTypeCastExpression in the call expression parameters. However this check is never activated from day 1 because it is guarded by an unresolvable expr._exprListItem. This PR removes this condition and adds a test on this error.

@JLHwung JLHwung added PR: Internal 🏠 A type of pull request used for our changelog categories pkg: parser area: typescript labels Dec 29, 2019
@JLHwung JLHwung merged commit 86245a8 into babel:master Dec 30, 2019
@JLHwung JLHwung deleted the ts-typecast-should-not-be-inside-call-params branch December 30, 2019 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: typescript outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not parse invalid TSTypeCastExpression
3 participants