mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:39:38 +00:00
e2971da563
This merges the representations for the `Null` and `Never` types into a single `_BottomType` class and for the `Object`, `Object?`, `dynamic` and `void` types into a single `_TopType` class. Since the merged classes behave identically in subtype checking apart from nullability, this simplifies subtype checking. Also makes the runtime type representations for these types plus `Function`, `Function?`, `Record` and `Record?` singletons in order to simplify their equality and `hashCode`. Change-Id: Iad51d1042d0f2f01c1190ba3f63edaeb32dac1dd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320540 Reviewed-by: Ömer Ağacan <omersa@google.com> Commit-Queue: Aske Simon Christensen <askesc@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
.gitignore | ||
api_readme.md | ||
BUILD.gn | ||
OWNERS |