Skip to content

Commit 841d191

Browse files
committed
Add test case for type lambda
1 parent 4a5ab5a commit 841d191

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
trait A[T]
2+
trait B[T] extends A[T]
3+
4+
object Test {
5+
def foo(x: ([X] =>> A[X])[Any]) = x match {
6+
case x: ([X] =>> B[X])[Any] =>
7+
case _ =>
8+
}
9+
10+
def bar(x: ([X] =>> A[X])[Any]) = x match {
11+
case x: ([X] =>> B[Nothing])[Any] => // error
12+
case _ =>
13+
}
14+
}

0 commit comments

Comments
 (0)