Can the override in ArrayDeque be implemented to return a C?
Once this is fixed, test/files/run/t4535.scala needs an --update-check.
Side-question: is there a type checking issue? SeqOps.reverse is defined to return C, and we have Stack[A] extends ArrayDeque[A] .. with IndexedSeqOps[A, Stack, Stack[A]] ... It seems to me the override of reverse inherited from ArrayDeque doesn't satisfy the requirement.
2.12:
2.13
Can the override in
ArrayDeque
be implemented to return aC
?Once this is fixed,
test/files/run/t4535.scala
needs an--update-check
.Side-question: is there a type checking issue?
SeqOps.reverse
is defined to returnC
, and we haveStack[A] extends ArrayDeque[A] .. with IndexedSeqOps[A, Stack, Stack[A]] ..
. It seems to me the override ofreverse
inherited fromArrayDeque
doesn't satisfy the requirement.