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.
2 parents e04d3a1 + f012b87 commit 8a1810cCopy full SHA for 8a1810c
docs/docs/reference/new-types/intersection-types.md
@@ -29,6 +29,8 @@ The members of an intersection type `A & B` are all the members of `A` and all
29
the members of `B`. For instance `Resettable & Growable[String]`
30
has member methods `reset` and `add`.
31
32
+`&` is _commutative_: `A & B` is the same type as `B & A`.
33
+
34
If a member appears in both `A` and `B`, its type in `A & B` is the intersection
35
of its type in `A` and its type in `B`. For instance, assume the definitions:
36
0 commit comments