Y
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
kccqzy
79 days ago
That doesn’t apply to plain old arrays, which were in the language before the designers actually collaborated with type theory experts.
link