-
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.
[vm] Make Class::RareType() the instantiated to bounds type.
Previously, Class::RareType() returned a Type where the type arguments were null (e.g., all dynamic). However, this is an invalid type for classes that have at least one type parameter with a bound that is not a top type, and could mean that comparisons (such as subtyping) against the "rare" type could return incorrect answers. Instead, use TypeParameters::defaults() to get the canonicalized instantiated to bounds type argument vector and use that instead. TEST=ci Cq-Include-Trybots: luci.dart.try:vm-reload-linux-debug-x64-try,vm-reload-rollback-linux-debug-x64-try,vm-linux-debug-x64-try,vm-linux-release-x64-try Change-Id: Iea591e93102f53713265b481476f9670cfb81c93 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312261 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>
- Loading branch information
Showing
3 changed files
with
15 additions
and
9 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