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 pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE #1457

Merged

Conversation

scheglov
Copy link
Contributor

@scheglov scheglov commented Sep 1, 2021

This prepares for landing https://dart-review.googlesource.com/c/sdk/+/190360 into the analyzer.

Copy link
Contributor

@nex3 nex3 left a comment

Choose a reason for hiding this comment

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

This code is actually more complicated than it looks. Although the type check in question isn't necessary in async_evaluate.dart, that code is compiled to the synchronous evaluate.dart and transformed into a callable is Callable check which is relevant. Can you just add an ignore for the hint instead?

@scheglov scheglov force-pushed the fix-HintCode.UNNECESSARY_TYPE_CHECK_TRUE branch from bdfaadd to e852901 Compare September 2, 2021 02:23
@scheglov
Copy link
Contributor Author

scheglov commented Sep 2, 2021

Done.

@scheglov
Copy link
Contributor Author

scheglov commented Sep 3, 2021

Could you merge these changes? It seems that I don't have corresponding permissions.

@jathak jathak merged commit 3112f80 into sass:main Sep 7, 2021
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

3 participants