blob: f868669277590ef45e3603931164acff50f02d2c [file]
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-76142
// RENDER_DIAGNOSTIC_ARGUMENTS
@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 */