Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Aaron Schlesinger arschles

🏠
Working from home
View GitHub Profile
View type-bounds.scala
class A
class A2 extends A
class B
trait M[X]
//
// Upper Type Bound
//
def upperTypeBound[AA <: A](x: AA): A = x
You can’t perform that action at this time.