Skip to content

Scope.defineType

Dokka 2.2.0 generates this reference of the Kotlin spec builder during each site build from the Kotlin sources, and its summary lists every class and function. The guide shows the builder in use, the Java builder's reference covers the handles, types and expressions it shares, and the extensions read the data.

fun defineType(name: String, type: IntType): IntType

type name = type, a named integer type.


type name = type, a named float type.


fun defineType(name: String, type: NumType): NumType

type name = type, a named number type.


type name = type, a named string type.