score:0

Self-answering with links to material on more complicated usage of context bounds for the sake of anyone else who encounters such issues.

You can declare a type to have multiple context bounds: ":" in type parameter

But it seems you may not be able to use a context bound if the type itself takes multiple parameters: http://www.scala-lang.org/old/node/5310.html

However, by using type aliases with a higher kinded type you may by able to create context bounds for which the type accepts type parameters, at least in some cases: Context bounds shortcut with higher kinded-types

Please correct me if I'm wrong or out of date, or if Scala is updated with more support for this functionality.


Related Query

More Query from same tag