W3cubDocs

/Kotlin

Experimental

Platform and version requirements: JVM (1.2), JS (1.2), Native (1.2)
@Target([AnnotationTarget.ANNOTATION_CLASS]) annotation class Experimental

Signals that the annotated annotation class is a marker of an experimental API.

Any declaration annotated with that marker is considered an experimental declaration and its call sites should accept the experimental aspect of it either by using UseExperimental, or by being annotated with that marker themselves, effectively causing further propagation of that experimental aspect.

This class is experimental itself and can only be used with the compiler argument -Xuse-experimental=kotlin.Experimental.

Types

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

Level

Severity of the diagnostic that should be reported on usages of experimental API which did not explicitly accept the experimental aspect of that API either by using UseExperimental or by being annotated with the corresponding marker annotation.

enum class Level

Constructors

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

<init>

Signals that the annotated annotation class is a marker of an experimental API.

Experimental(level: Level = Level.ERROR)

Properties

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

level

val level: Level

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-experimental/index.html