Join Slack
Powered by
An example: Let's say I have `fun print(list: List...
# getting-started
k
karelpeeters
09/12/2017, 4:16 PM
An example: Let's say I have
fun print(list: List<Number>)
, is it fine to pass a
List<Int>
? Yes, and that's what the
out
signifies: you can always use a
List<Child>
instead of a
List<Parent>
.
4
Views
Open in Slack
Previous
Next