Skip to content

TYPEALIASED_CONSTRUCTOR

A declaration from a type alias constructor. Class type aliases define their own synthetic constructors which can be called in place of the original class's constructor.

Example

class MyClass(param: String)

typealias MyTypeAlias = MyClass

fun usage() {
  MyClass()     // <-- this reference points to a regular constructor symbol
  MyTypeAlias() // <-- this reference points to a typealiased constructor symbol
}

Properties

name

val name: String

ordinal

val ordinal: Int