-
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.
Fix INFERENCE_FAILURE_ON_COLLECTION_LITERAL to allow for dynamically-…
…typed elements. Previously, strict-inference would declare that the type of this list could not be inferred: var a; var l = [e]; Now it is considered that the types of elements of a collection are "settled", ("resolved"?) and that the collection should not be punished (marked as inference failure) just because it contains dynamic types. Change-Id: I5b0762420235da187e08bcf6f3fea0c0d3f2195e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111311 Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
- Loading branch information
1 parent
3b1cb90
commit 8293e96
Showing
3 changed files
with
70 additions
and
31 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
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