blob: 4e5e40040447e25e3d6dd289236fb64ae13aa92a [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!>someFunction<!>()
<!OPT_IN_USAGE_ERROR!>anotherFunction<!>()
}
/* GENERATED_FIR_TAGS: annotationDeclaration, functionDeclaration, stringLiteral */