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.
2 parents 1246b4b + e41bf5d commit f192a47Copy full SHA for f192a47
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