diff --git a/tests/pos/i1747.scala b/tests/pos/i1747.scala index b8be2433abc6..9be62a10a084 100644 --- a/tests/pos/i1747.scala +++ b/tests/pos/i1747.scala @@ -1,3 +1,3 @@ abstract class Coll[E] extends java.util.Collection[E] { - override def toArray[T](a: Array[T with Object]): Array[T with Object] = ??? // error: cannot override + override def toArray[T](a: Array[T with Object]): Array[T with Object] = ??? }