blob: 931dc9721ea6f5fecce936da3b9d295f5bd3006d [file]
// RUN_PIPELINE_TILL: BACKEND
// ISSUE: KT-65844
@RequiresOptIn
annotation class MyOptIn
@MyOptIn
fun foo() {}
@OptIn(markerClass = [<!OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN!>MyOptIn<!>::class]) // should be ok
class MyClass {
fun test() {
foo()
}
}
/* GENERATED_FIR_TAGS: annotationDeclaration, classDeclaration, classReference, collectionLiteral, functionDeclaration */