name

expect abstract val name: String(source)

The name of this callable as it was declared in the source code. If the callable has no name, a special invented name is created. Nameless callables include:

  • constructors have the name "",

  • property accessors: the getter for a property named "foo" will have the name "", the setter, similarly, will have the name "".

Since Kotlin

1.0
actual abstract val name: String(source)

The name of this callable as it was declared in the source code. If the callable has no name, a special invented name is created. Nameless callables include:

  • constructors have the name "",

  • property accessors: the getter for a property named "foo" will have the name "", the setter, similarly, will have the name "".

Since Kotlin

1.1
actual abstract val name: String(source)

The name of this callable as it was declared in the source code. If the callable has no name, a special invented name is created. Nameless callables include:

  • constructors have the name "",

  • property accessors: the getter for a property named "foo" will have the name "", the setter, similarly, will have the name "".

Since Kotlin

1.0
actual abstract val name: String(source)

The name of this callable as it was declared in the source code. If the callable has no name, a special invented name is created. Nameless callables include:

  • constructors have the name "",

  • property accessors: the getter for a property named "foo" will have the name "", the setter, similarly, will have the name "".

Since Kotlin

1.3