Skip to content

Commit 20a8ea7

Browse files
authored
Merge pull request #3266 from allanrenucci/i3264
Add test case for #3264
2 parents 20425bb + 2adb7f7 commit 20a8ea7

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)