'The difference between Scala type bound and generalized type constraints
Is there any sufficient difference between constraints of two method at the trait Foo?
trait Foo[A] {
def barWithTypeBound[B <: A]: B
def barWithGeneralizedTypeConstraint[B](implicit ev: B <:< A): B
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
