You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_spec/03-types.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1071,7 +1071,7 @@ The following properties hold about ´⌈X⌉´ (we have paper proofs for those)
1071
1071
The "lower-bound rule" states that ´S <: T´ if ´T = q.X´ and ´q.X´ is a non-class type designator and ´S <: L´ where ´L´ is the lower bound of the underlying type definition of ´q.X´".
1072
1072
That rule is known to break transitivy of subtyping in Scala already.
1073
1073
1074
-
Second, we define the relation ´⋔´ on *classes* (including traits and hidden classes of objects) as:
1074
+
Second, we define the relation ´⋔´ on *classes* (including traits, hidden classes of objects, and enum terms) as:
1075
1075
1076
1076
- ´C ⋔ D´ if `´C ∉´ baseClasses´(D)´` and ´D´ is `final`
1077
1077
- ´C ⋔ D´ if `´D ∉´ baseClasses´(C)´` and ´C´ is `final`
0 commit comments