We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a5dbf commit 0116580Copy full SHA for 0116580
tests/neg/i3703.scala
@@ -0,0 +1,11 @@
1
+package bar {
2
+ trait M[F[_]]
3
+ class S[XS[_] <: M[XS], A](val x: XS[A])
4
+ object S {
5
+ def apply[X[_] <: M[X], A](x: X[A]): S[X, A] = S[X, A](x)
6
+ def unapply[X[_] <: M[X], A](p: S[X, A]): S[X, A] = S(p.x) // error, scalac allows this but dotty fails to infer the type arguments.
7
+ }
8
+}
9
+
10
11
0 commit comments