Skip to content

Commit ac84047

Browse files
authored
Merge pull request #4332 from dotty-staging/fix-i782
Fix #782: Add regression test
2 parents 7a0d55d + 5eecd80 commit ac84047

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)