We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
object Main extends App: enum Extends[A, B]: case Ev[B, A <: B]() extends (A Extends B) def cast(a: A): B = this match { case Extends.Ev() => a }
Found: (a : A) Required: B
I expect A <: B to be visible inside Extends.Ev() case body
A <: B
Extends.Ev()