From 0fcb4c3fb05b624c57d0a886d8b22ad55c8fbfde Mon Sep 17 00:00:00 2001 From: Leonid Startsev Date: Fri, 6 Jan 2023 16:09:27 +0100 Subject: [PATCH] Document @ExperimentalContextReceivers --- .../src/kotlinx/metadata/OptInMarkers.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libraries/kotlinx-metadata/src/kotlinx/metadata/OptInMarkers.kt b/libraries/kotlinx-metadata/src/kotlinx/metadata/OptInMarkers.kt index 98e95b42945..05e1126d900 100644 --- a/libraries/kotlinx-metadata/src/kotlinx/metadata/OptInMarkers.kt +++ b/libraries/kotlinx-metadata/src/kotlinx/metadata/OptInMarkers.kt @@ -1,11 +1,18 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * 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 kotlinx.metadata +/** + * Marks an API related to the Kotlin's [context receivers](https://github.com/Kotlin/KEEP/blob/master/proposals/context-receivers.md) experimental feature. + * + * Marked API reflects metadata written by this feature, and can be changed or removed as development continues. + * Therefore, it does not provide any compatibility guarantees. + */ @RequiresOptIn( - "The API uses experimental feature \"context receivers\" (see KEEP-259) and may be changed or removed in any future release." + "The API uses experimental feature \"context receivers\" (see KEEP-259) and may be changed or removed in any future release.", + RequiresOptIn.Level.ERROR ) annotation class ExperimentalContextReceivers