Introduce RequiresOptIn and OptIn annotations
RequiresOptIn should be used now instead of Experimental, OptIn instead of UseExperimental. See https://github.com/Kotlin/KEEP/pull/201. This change adds the new declarations only to the stdlib, and supports them in the compiler. Because of the way compiler loads annotations, we need to bootstrap it first before deprecating the old annotations and updating tests. #KT-34647 Fixed
This commit is contained in:
@@ -171,6 +171,7 @@ public annotation class JsQualifier(val value: String)
|
||||
* or with the `-Xuse-experimental=kotlin.js.ExperimentalJsExport` compiler option is given.
|
||||
*/
|
||||
@Experimental(level = Experimental.Level.WARNING)
|
||||
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
||||
@SinceKotlin("1.3")
|
||||
public annotation class ExperimentalJsExport
|
||||
|
||||
|
||||
Reference in New Issue
Block a user