blob: ed2f0c0c987b47999871be5978b117d292f6d1ee [file]
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-76142
// RENDER_DIAGNOSTICS_MESSAGES
@RequiresOptIn(
message = "This is an experimental API"
)
annotation class Experimental
@RequiresOptIn(
message = "This is an experimental " + "API"
)
annotation class ExperimentalWithConcatenation
@Experimental
fun someFunction() {}
@ExperimentalWithConcatenation
fun anotherFunction() {}
fun test() {
<!OPT_IN_USAGE_ERROR("Experimental; This is an experimental API")!>someFunction<!>()
<!OPT_IN_USAGE_ERROR("ExperimentalWithConcatenation; This is an experimental API")!>anotherFunction<!>()
}
/* GENERATED_FIR_TAGS: annotationDeclaration, functionDeclaration, stringLiteral */