blob: 5d25f6d5c8b4aba3eec7b0a0b6290e33a3276007 [file]
// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
// OPT_IN: kotlin.RequiresOptIn
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
@Retention(AnnotationRetention.BINARY)
annotation class ExperimentalAPI
@ExperimentalAPI
fun function(): String = ""
fun use(): String {
@OptIn(ExperimentalAPI::class)
for (i in 1..2) {
function()
}
@OptIn(ExperimentalAPI::class)
return function()
}
/* GENERATED_FIR_TAGS: annotationDeclaration, classReference, forLoop, functionDeclaration, integerLiteral,
localProperty, propertyDeclaration, rangeExpression, stringLiteral */