-
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 a bug in optional const: missing instantiation to bounds on ctors
Part of #30384. This was usually not a problem as most cases involve additional visitors which rewrite this (for instance, inference). However, in some cases (appears to be summaries only), that extra resolution is not needed/skipped, so the non-instantiated constructors remain. That makes the constantValue of annotations vulnerable to this, and the resulting DartObject types will have 'TypeParameterType's for there typeArguments. Instantiate the types to bounds, and get the ctor from the type rather than the element, inside of AstRewriter in order to ensure these constructors are instantiated. Change-Id: I65f55feb751e139e68c774786bfbc53788d32995 Reviewed-on: https://dart-review.googlesource.com/58800 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Mike Fairhurst <[email protected]>
- Loading branch information
1 parent
9672d69
commit 4d23db7
Showing
6 changed files
with
121 additions
and
19 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
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