Skip to content

Always emit diagnostic when a call expression can be fixed by adding a semicolon #27669

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

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

ghost
Copy link

@ghost ghost commented Oct 9, 2018

Sequel to #27020

That PR fixed the particular problem, but I don't think it's necessary to do this only for type assertions. Any time we have an expression, then a newline, then a parenthesized expression, and the first expression wasn't callable, it's likely that the fix is to add a semicolon.

@ghost ghost requested a review from DanielRosenwasser October 10, 2018 00:13
@DanielRosenwasser DanielRosenwasser merged commit 830be06 into master Nov 12, 2018
@DanielRosenwasser
Copy link
Member

Awesome, thanks Andy!

@DanielRosenwasser DanielRosenwasser deleted the betterErrorForAccidentalCall branch November 12, 2018 22:50
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.

1 participant