KType

actual interface KType : KAnnotatedElement(source)(source)

Represents a type. Type is usually either a class with optional type arguments, or a type parameter of some declaration, plus nullability.

Since Kotlin

1.0
expect interface KType(source)(source)

Represents a type. Type is usually either a class with optional type arguments, or a type parameter of some declaration, plus nullability.

Since Kotlin

1.0

Properties

Link copied to clipboard
abstract val annotations: List<Annotation>

Annotations which are present on this element.

Since Kotlin 1.0
Link copied to clipboard
actual abstract val isMarkedNullable: Boolean
expect abstract val isMarkedNullable: Boolean

true if this type was marked nullable in the source code.

Since Kotlin 1.0