KmTypeParameter

Represents a type parameter of a Kotlin class, function, property, or type alias.

Various type parameter attributes can be read and manipulated via extension properties, such as KmTypeParameter.isReified.

Constructors

Link copied to clipboard
constructor(name: String, id: Int, variance: KmVariance)

Properties

Link copied to clipboard

Annotations on the type parameter.

Link copied to clipboard
var id: Int

the id of the type parameter, useful to be able to uniquely identify the type parameter in different contexts where the name is not enough (e.g. class A<T> { fun <T> foo(t: T) })

Link copied to clipboard

Indicates that the corresponding type parameter is reified.

Link copied to clipboard

the name of the type parameter

Link copied to clipboard

Upper bounds of the type parameter.

Link copied to clipboard

the declaration-site variance of the type parameter