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

feat(36048): Apply uncalled function checks to ternaries #36402

Merged
merged 4 commits into from
Feb 20, 2020

Conversation

a-tarasyuk
Copy link
Contributor

Fixes #36048

@sandersn
Copy link
Member

@weswigham and @DanielRosenwasser are probably the best reviewers for this.

Copy link
Member

@weswigham weswigham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a striaghtforward generalization of the if machinery to ternaries to me~

The only thing I could add is that it's maybe also extendable to && (and ?? assuming we don't already issue an error there), so we could also probably check binary expressions in this way.

@DanielRosenwasser
Copy link
Member

@typescript-bot test this
@typescript-bot user test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 28, 2020

Heya @DanielRosenwasser, I've started to run the parallelized community code test suite on this PR at 94dbe2f. You can monitor the build here. It should now contribute to this PR's status checks.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 28, 2020

Heya @DanielRosenwasser, I've started to run the extended test suite on this PR at 94dbe2f. You can monitor the build here. It should now contribute to this PR's status checks.

@sandersn
Copy link
Member

With 3.8 leaving beta at end of week, let's hold this until 3.9.

@typescript-bot
Copy link
Collaborator

The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master.

@sandersn sandersn added the For Milestone Bug PRs that fix a bug with a specific milestone label Feb 1, 2020
@a-tarasyuk
Copy link
Contributor Author

The following lines cause the error

updated: includeProjectReferenceRedirectInfoIfRequested

const includeProjectReferenceRedirectInfoIfRequested =

Is it the right condition in this case?

cc @sandersn @DanielRosenwasser @weswigham

@sandersn
Copy link
Member

Yes, those errors are correct, and they should be fixed before merging this PR. I asked @uniqueiniquity to investigate.

@sandersn
Copy link
Member

Fix is #36885, thanks @uniqueiniquity for figuring it out.

@a-tarasyuk
Copy link
Contributor Author

a-tarasyuk commented Feb 20, 2020

@sandersn Oke, I'll wait for merge PR #36885.

@sandersn
Copy link
Member

OK, @a-tarasyuk can you merge from master and I'll re-run the user tests to make sure they're still good.

@sandersn
Copy link
Member

@typescript-bot test this
@typescript-bot user test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 20, 2020

Heya @sandersn, I've started to run the extended test suite on this PR at 0c06464. You can monitor the build here. It should now contribute to this PR's status checks.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Feb 20, 2020

Heya @sandersn, I've started to run the parallelized community code test suite on this PR at 0c06464. You can monitor the build here. It should now contribute to this PR's status checks.

@typescript-bot
Copy link
Collaborator

The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master.

@sandersn
Copy link
Member

sandersn commented Feb 20, 2020

user and RWC tests look clean
(and node 12 failure on devops is bogus)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Apply uncalled function checks to ternaries
5 participants