KmTypeProjection

data class KmTypeProjection(var variance: KmVariance?, var type: KmType?)

Represents type projection used in a type argument of the type based on a class or on a type alias. For example, in MutableMap<in String?, *>, in String? is the type projection which is the first type argument of the type.

Constructors

Link copied to clipboard
constructor(variance: KmVariance?, type: KmType?)

Types

Link copied to clipboard
object Companion

Contains default instance for star projection: KmTypeProjection.STAR.

Properties

Link copied to clipboard
var type: KmType?

the projected type, or null if this is a star projection

Link copied to clipboard

the variance of the type projection, or null if this is a star projection