Skip to content

Commit 5eecd80

Browse files
committed
Fix #782: Add regression test
1 parent 663b4b9 commit 5eecd80

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/pos/i782.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class M
2+
3+
class A extends M
4+
class B extends M
5+
6+
class Foo[T](x: T) {
7+
def foo[S >: T](other: S): Foo[S] = ???
8+
}
9+
10+
object C {
11+
def xy() = {
12+
val x: Foo[A] = new Foo(new A)
13+
x.foo(new B)
14+
}
15+
}

0 commit comments

Comments
 (0)