Compound Types - Scala Documentation


#1

Sometimes it is necessary to express that the type of an object is a subtype of several other types. In Scala this can be expressed with the help of compound types, which are intersections of object types.


This is a companion discussion topic for the original entry at http://docs.scala-lang.org//tutorials/tour/compound-types.html.html