-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flow analysis: additional tests for error types.
Verify that the presence of an error type doesn't accidentally trigger "unnecessary cast pattern" or "unnecessary wildcard pattern" warnings (this verifies that `promoteForPattern` returns the proper value when an error type is encountered). Verify that the presence of an error type doesn't alter reachability conclusions that were established by previous subpatterns (this verifies that `promoteForPattern` uses the proper join to update `_unmatched` when an error type is encountered). Change-Id: I351c71574dff31602c40b257c28681b81fad2867 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303260 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
- Loading branch information
1 parent
dff0007
commit 5043c38
Showing
3 changed files
with
36 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1749,6 +1749,7 @@ walker | |
walking | ||
wanting | ||
wants | ||
warned | ||
waste | ||
wasted | ||
watch | ||
|