Skip to content

Glossary: Kotlin Beyond the Basics

declaration-site variance

Also written: use-site variance

Declaration-site variance marks `in` or `out` on the class itself. Use-site variance marks it where the type is used, as in `MutableList<out Priced>`.

Where the book teaches it

Related terms

variance