Skip to content

Commit 7f98366

Browse files
committed
Added neg test
(scalac and dotty both produce an error here)
1 parent 5e48d1c commit 7f98366

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/neg/i739.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Foo[A, B]
2+
class Test {
3+
implicit val f: Foo[Int, String] = ???
4+
def t[A, B >: A](a: A)(implicit f: Foo[A, B]) = ???
5+
t(1) // error
6+
}
7+

0 commit comments

Comments
 (0)