blob: 79107b557035ff1bdeba087d539a7e048c6237b6 [file]
// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
// OPT_IN: kotlin.RequiresOptIn
@RequiresOptIn
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class MyAnn
interface MyInterface {
@MyAnn
fun foo()
@MyAnn
fun bar()
}
val field = object : MyInterface {
@MyAnn
override fun foo() {}
@OptIn(MyAnn::class)
override fun bar() {}
}
/* GENERATED_FIR_TAGS: annotationDeclaration, anonymousObjectExpression, classReference, functionDeclaration,
interfaceDeclaration, override, propertyDeclaration */