You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defcompare(x: Array[N], y: Array[N]) =???^
error overriding method compare in traitComparator of type (x$0: Array[N], x$1: Array[N]):Int;
method compare of type (x: Array[N], y: Array[N]):Int has incompatible type
(Note that Scala's and Java's representation of thistypediffers)
expectation
Should work, as in the specialized case:
classArrayIntOrderingextends scala.math.Ordering[Array[Int]] {
defcompare(x: Array[Int], y: Array[Int]) =???// works fine
}
minimized code
Compilation output
expectation
Should work, as in the specialized case:
workaround
The text was updated successfully, but these errors were encountered: