Alasca: Modifiers

Published on 2018-09-07.

All modifiers start with an @ sign and are placed on the preceding line of the element they annotate.

Example:

@open
class Foo(value: Int)

@internal
fun bar(baz: Int) = ...

List of keywords:

  • @open
  • @sealed
  • @data
  • @enum
  • @final

  • @abstract
  • @override

  • @public
  • @private
  • @protected
  • @internal

  • @available(since = "", until = "", reason = "")