Re:The Unsound Playground: Java and Scala's Type Systems are...
by dvt on Monday November 28, 2016 @03:07PM
(#13057961)
My point had nothing to do with the merits of covariant types, just tractability. It seems that the array's type is tractable so the compiler should (at least) give a warning.
This isn't an error, it was a design decision: https://en.wikipedia.org/wiki/Covariance_and_contravariance_...
You could call it bad design, but fixing it would (imo) just make Java even worse than it already is.