We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 693f2e6 commit 2e72550Copy full SHA for 2e72550
docs/docs/reference/intersection-types-spec.md
@@ -5,7 +5,7 @@ title: "Intersection Types - More Details"
5
6
## Syntax
7
8
-Syntactically, an intersection type is similar to an infix type,
+Syntactically, an intersection type `S & T` is similar to an infix type,
9
where the infix operator is `&`.
10
11
```
@@ -87,7 +87,7 @@ class C extends A with B {
87
A & B <: T
88
89
90
-From the rules above, we can show that `&` is _commutative_: `A & B <: B & A`.
+From the rules above, we can show that `&` is _commutative_: `A & B <: B & A` for any type `A` and `B`.
91
In another word, `A & B` is the same type as `B & A`, in that sense that the two types
92
have the same values and are subtypes of each other.
93
0 commit comments