Skip to content

Commit

Permalink
Merge pull request scala#3266 from allanrenucci/i3264
Browse files Browse the repository at this point in the history
Add test case for scala#3264
  • Loading branch information
odersky authored Oct 5, 2017
2 parents 20425bb + 2adb7f7 commit 20a8ea7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/pos/i3264.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trait Foo[+F[_]] {
def bar: Bar[F]
}

trait Bar[+F[_]]

trait Base[+A]
trait Sub[A] extends Base[A]

class Test {
def makeFoo(barSub: Bar[Sub]): Foo[Base] =
new Foo[Base] {
def bar/*: Bar[Base]*/ = barSub
}
}

0 comments on commit 20a8ea7

Please sign in to comment.