Kotlin Help

Keywords and operators

Hard keywords

The following tokens are always interpreted as keywords and cannot be used as identifiers:

Soft keywords

The following tokens act as keywords in the context in which they are applicable, and they can be used as identifiers in other contexts:

Modifier keywords

The following tokens act as keywords in modifier lists of declarations, and they can be used as identifiers in other contexts:

Special identifiers

The following identifiers are defined by the compiler in specific contexts, and they can be used as regular identifiers in other contexts:

Operators and special symbols

Kotlin supports the following operators and special symbols:

For operator precedence, see this reference in Kotlin grammar.

Last modified: 27 November 2023