Skip to content

Commit 37a7924

Browse files
committed
Add test for #9971
1 parent 5e56416 commit 37a7924

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/neg/i9971.check

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- [E007] Type Mismatch Error: tests/neg/i9971.scala:6:10 --------------------------------------------------------------
2+
6 |def b = f(a) // error
3+
| ^
4+
| Found: G[[A <: Int] =>> List[A]]
5+
| Required: G[List]

tests/neg/i9971.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
trait G[F[_]]
2+
3+
def f(x: G[List]) = ???
4+
5+
def a: G[[A <: Int] =>> List[A]] = ???
6+
def b = f(a) // error

0 commit comments

Comments
 (0)