Skip to content

Commit 28028df

Browse files
flomebulSporarum
andauthored
Update _tour/compound-types.md
Co-authored-by: Quentin Bernet <[email protected]>
1 parent 080ae88 commit 28028df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_tour/compound-types.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def cloneAndReset(obj: Cloneable & Resetable): Cloneable = {
8585
}
8686
```
8787
Compound types can consist of several object types and they may have a single refinement which can be used to narrow the signature of existing object members.
88-
The general form is: `A & B & C ... { refinement }`
88+
Note that you can have more than two types: `A & B & C & ...`.
89+
And `&` is associative, so parentheses can be added around any part without changing the meaning.
8990
{% endtab %}
9091
{% endtabs %}
9192

0 commit comments

Comments
 (0)