Open
Description
Compiler version
scala-3.3.0-RC6
Minimized code
// this fail
type ValueVector = Vector[String] | Vector[Double]
val v1: ValueVector = Vector("a", "b")
val v2: ValueVector = v1.tail
// this works
type ValueVector = Vector[String] | Set[Double]
val v1: ValueVector = Vector("a", "b")
val v2: ValueVector = v1.tail
Output
Found: Vector[String | Double]
Required: ValueVector
val v2: ValueVector = v1.tail
Expectation
It shouldn't expect Vector[String | Double]
at all.