Closed
Description
minimized code
trait Foo; trait Bar
type Res[X] = X match {
case Foo => String
case Bar => Int
}
0: Res[Bar]
Compilation output
1 |0: Res[Bar]
|^
|Found: (0 : Int)
|Required: Res[Bar]
expectation
It works as expected if you change the traits to classes, or if you reverse the order of the cases.