Skip to content

Glossary: Kotlin Beyond the Basics

covariant

Also written: out T

A type parameter marked `out` is only returned, never taken in, so `Box<MenuItem>` counts as a `Box<Any>`.

Where the book teaches it

Related terms

contravariantvariance