forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix engine in preparation for implementing dart-lang/language#1274 (f…
…lutter#23131) When dart-lang/language#1274 (Infer non-nullability from local boolean variables) is implemented, flow analysis will detect that code like this no longer needs to perform a null check: final bool hasIdentityTransform = transform == null || isIdentityFloat32ListTransform(transform); ... if (!hasIdentityTransform) { ... transform! ... // Null check unnecessary } To avoid a build failure due to the unnecessary null check, we need to temporarily write it in a way that we can ignore it. Once the feature is complete and rolled into flutter, I'll remove the null check entirely.
- Loading branch information
1 parent
ade75e0
commit 2ef2c86
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters