← Docs
kotlin-stdlib / kotlin.reflect / KTypeProjection / covariant

covariant

Common
JVM
JS
Native
1.0
@JvmStatic fun covariant ( type : KType ) : KTypeProjection
(source)

Creates a covariant projection of a given type, denoted by the out modifier applied to a type. For example, in the type Array<out Number> , out Number is a covariant projection of the type of class Number .

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .