Skip to content

Commit

Permalink
Improve commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
eernstg committed Nov 15, 2023
1 parent 0435d34 commit 4343f14
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1298,11 +1298,11 @@ rather than from `Object`)*.
*This change is needed because some extension types are subtypes of
`Object?` and not subtypes of `Object`, and they need to have a
well-defined depth. We could define the depth to be zero for `Object`, for
`Null`, and for every extension type that has no `implements` clause, and
insist that `Object?` isn't an interface type and doesn't have a depth, but
`Null`, and for every extension type that has no `implements` clause, but
in that case we no longer have a guarantee that the sets of superinterfaces
with the same maximal depth that the Dart 1 least upper bound algorithm
uses will have at least one singleton set.*
uses will have at least one singleton set. All in all it's simpler if we
preserve the property that the superinterface graph has a single root.*


## Dynamic Semantics of Extension Types
Expand Down

0 comments on commit 4343f14

Please sign in to comment.