KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If a class has a convariant type parameter such as Iterable[+A] , is there any difference between declaring def foo(bar: Iterable[_]) and def foo(bar: Iterable[Any]) ? If a class has a contravariant type parameter such as Growable[-A] , is there any difference between declaring def foo(bar: Growable[_]) and def foo(bar: Growable[Nothing]) ?
Tags (comma-separated)
Save Edits
Cancel