| // RUN_PIPELINE_TILL: BACKEND | |
| // FIR_IDENTICAL | |
| // OPT_IN: kotlin.RequiresOptIn api.ExperimentalAPI | |
| // MODULE: api | |
| // FILE: api.kt | |
| package api | |
| @RequiresOptIn(level = RequiresOptIn.Level.ERROR) | |
| @Retention(AnnotationRetention.BINARY) | |
| annotation class ExperimentalAPI | |
| @ExperimentalAPI | |
| fun function(): String = "" | |
| // MODULE: usage(api) | |
| // FILE: usage.kt | |
| package usage | |
| import api.* | |
| fun use() { | |
| function() | |
| } | |
| /* GENERATED_FIR_TAGS: annotationDeclaration, functionDeclaration, stringLiteral */ |