object A:
opaque type Str = String
object B:
type F[X] = X match
case A.Str => String
case Int => Boolean
case Boolean => Int
val x1: F[A.Str] = ""
val x2: F[Int] = true
val x3: F[Boolean] = 1
Output
compile error.
Expectation
This issue hinders the ability to match Tuple and NamedTuple within Match Types.
Compiler version
3.5.0
Minimized code
Output
compile error.
Expectation
This issue hinders the ability to match Tuple and NamedTuple within Match Types.