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.
2 parents c4959a1 + cfcdbbb commit 40f497bCopy full SHA for 40f497b
tests/pos/i19749.scala
@@ -0,0 +1,15 @@
1
+import scala.deriving.Mirror
2
+
3
+case class A(x: Int, y: String)
4
5
+trait SomeTrait[T]
6
7
+object SomeTrait:
8
+ given [T]: SomeTrait[T] with {}
9
10
+def f1[T](using p: Mirror.ProductOf[T]): Tuple.Elem[p.MirroredElemTypes, 0] = ???
11
12
+def f2[T, R](f: T => R)(using SomeTrait[R]) = ???
13
14
+// Scala3.3 is fine, 3.4 has compilation errors, p MirroredElemTypes type is missing and has been changed to Nothing
15
+val x = f2(_ => f1[A])
0 commit comments