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 38e1086 commit ea37a41Copy full SHA for ea37a41
tests/neg/given-eta.scala
@@ -0,0 +1,9 @@
1
+
2
+trait D
3
+ type T
4
+ def trans(other: T): T
5
6
+def h(d: D)(given x: d.T)(y: d.T) = (d.trans(x), d.trans(y))
7
8
+val z = h // error: no implicit argument of type d.T was found for parameter x of method h
9
0 commit comments