Is it possible to constrain a Scala generic type to only types that have overloaded a specific operator?
Example:
def foo[T](...):T = {...}
foo(...) * .70
Searching Google has yet to produce a solution. I considered restricting T to be of type Numeric (or scala's equivalent), but then I want to allow users to define custom types and specify their own behaviors for these operators.