aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1747.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i1747.scala')
-rw-r--r--tests/neg/i1747.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/neg/i1747.scala b/tests/neg/i1747.scala
new file mode 100644
index 000000000..54492aaed
--- /dev/null
+++ b/tests/neg/i1747.scala
@@ -0,0 +1,3 @@
+class Coll[E] extends java.util.Collection[E] { // error: needs to be abstract
+ def toArray[T](a: Array[T]): Array[T] = ??? // error: cannot override
+}