Level

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

Severity of the diagnostic that should be reported on usages which did not explicitly opted into the API either by using OptIn or by being annotated with the corresponding marker annotation.

Enum Values

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

WARNING

Specifies that a warning should be reported on incorrect usages of this API.

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

ERROR

Specifies that an error should be reported on incorrect usages of this API.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-requires-opt-in/-level/