Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jkhdigital
· 2mo ago · 0 comments
Java doesn’t permit that. You must specify covariant or contravariant type parameters with <? extends T> or <? super T>.
Comments
[–]
kccqzy
2mo ago
That doesn’t apply to plain old arrays, which were in the language before the designers actually collaborated with type theory experts.