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
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.
75
-
The general form is: `A with B with C ... { refinement }`
75
+
Note that you can have more than two types: `A with B with C with ...`.
76
+
This means the same as thing as `(...(A with B) with C`) with ... )`
76
77
{% endtab %}
77
78
{% tab 'Scala 3' for=compound-types_3 %}
78
79
This compound type is written like this in Scala: `Cloneable & Resetable`.
0 commit comments