raulraja
01/18/2018, 12:08 PMSerializable
but to any other undesirable upper bound such as Any
in which you loose type information.
With a type class Intersect
one could constrain which instances of A
and B
are valid to be intersected. The compiler would bail if you try to intersect two types for which an instance is not found in the imported scope.