Hacker News new | ask | show | jobs
by jkhdigital 80 days ago
Java doesn’t permit that. You must specify covariant or contravariant type parameters with <? extends T> or <? super T>.
1 comments

That doesn’t apply to plain old arrays, which were in the language before the designers actually collaborated with type theory experts.