Closed
Description
Compiler version
2.13.5 and 3.0.0-RC2
Minimized code
This code compiles in 2.13.5 but not in 3.0.0-RC2.
trait Wrapper[K]
trait Has0[T]
def test[R](v: Wrapper[Has0[String] with R]):R = ???
val zz:Wrapper[Has0[String] with Has0[Int]] = ???
test(zz)
Output
Error in 3.0.0-RC2
Found: (zz : Wrapper[Has0[String] & Has0[Int]])
Required: Wrapper[Has0[String] & R]
where: R is a type variable
test(zz)