diff --git a/libraries/stdlib/wasm/src/kotlin/text/regex/ExperimentalNativeApi.kt b/libraries/stdlib/wasm/src/kotlin/text/regex/ExperimentalNativeApi.kt new file mode 100644 index 00000000000..b023e493781 --- /dev/null +++ b/libraries/stdlib/wasm/src/kotlin/text/regex/ExperimentalNativeApi.kt @@ -0,0 +1,35 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package kotlin.experimental + +import kotlin.annotation.AnnotationTarget.* + +/** + * This annotation marks the Kotlin/Native-only standard library API that is considered experimental and is not subject to the + * [general compatibility guarantees](https://kotlinlang.org/docs/reference/evolution/components-stability.html) given for the standard library: + * the behavior of such API may be changed or the API may be removed completely in any further release. + * + * This is an internal copy of the public K/N annotation. + * It is used to [OptIn] experimental K/N API used in the shared native-wasm directory. + */ +@RequiresOptIn(level = RequiresOptIn.Level.WARNING) +@Retention(AnnotationRetention.BINARY) +@Target( + AnnotationTarget.CLASS, + AnnotationTarget.ANNOTATION_CLASS, + AnnotationTarget.PROPERTY, + AnnotationTarget.FIELD, + AnnotationTarget.LOCAL_VARIABLE, + AnnotationTarget.VALUE_PARAMETER, + AnnotationTarget.CONSTRUCTOR, + AnnotationTarget.FUNCTION, + AnnotationTarget.PROPERTY_GETTER, + AnnotationTarget.PROPERTY_SETTER, + AnnotationTarget.TYPEALIAS +) +@MustBeDocumented +@SinceKotlin("1.9") +internal annotation class ExperimentalNativeApi \ No newline at end of file