Skip to content

Commit 2adb7f7

Browse files
committed
Add test case for #3264
1 parent 443bdb1 commit 2adb7f7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/pos/i3264.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
trait Foo[+F[_]] {
2+
def bar: Bar[F]
3+
}
4+
5+
trait Bar[+F[_]]
6+
7+
trait Base[+A]
8+
trait Sub[A] extends Base[A]
9+
10+
class Test {
11+
def makeFoo(barSub: Bar[Sub]): Foo[Base] =
12+
new Foo[Base] {
13+
def bar/*: Bar[Base]*/ = barSub
14+
}
15+
}

0 commit comments

Comments
 (0)