We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a99d3d commit e41bf5dCopy full SHA for e41bf5d
tests/pos/i6126.scala
@@ -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