Skip to content

Commit ea37a41

Browse files
committed
Add neg test
1 parent 38e1086 commit ea37a41

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/neg/given-eta.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)