summaryrefslogtreecommitdiff
path: root/test/files/neg/t0528neg.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t0528neg.check')
-rw-r--r--test/files/neg/t0528neg.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t0528neg.check b/test/files/neg/t0528neg.check
new file mode 100644
index 0000000000..c8c3ab422f
--- /dev/null
+++ b/test/files/neg/t0528neg.check
@@ -0,0 +1,4 @@
+t0528neg.scala:2: error: covariant type A occurs in invariant position in type => Array[T forSome { type T <: A }] of method toArray
+ def toArray: Array[T forSome {type T <: A}]
+ ^
+one error found