Closed
Description
Is
sealed trait Foo[A, X <: A]
type FooX[F] = F match {
case Foo[a, x] => x
}
type MyFoo = Foo[String, "hello"]
val hello: FooX[MyFoo] = "hello"
related? It gives the error:
Found: ("hello" : String)
Required: FooX[MyFoo]
Even in 3.1.2-RC1.
Originally posted by @s5bug in #6697 (comment)