I understand I can define duck typing in generics
as following
trait MyTrait[A <: {def someMethod(key: String): String}]
However I don't want to specify that whole big string
in my trait
definition.
How can I split this to two (what I wish I could have):
type A = B <: {def someMethod(key: String): String}
trait MyTrait[A]