Skip to content

Commit e41bf5d

Browse files
committed
Fix #6126: Add regression test
1 parent 7a99d3d commit e41bf5d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i6126.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Test {
2+
class Foo[+T](val x: T)
3+
4+
def unfoo[T](foo: Foo[T]): T = foo.x
5+
6+
def fooArray: Foo[Array[Object]] = new Foo(Array.empty[Object])
7+
8+
unfoo(fooArray) ++ unfoo(fooArray)
9+
}

0 commit comments

Comments
 (0)