FIR: store all annotationContainers in checker context
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// FIR_IDENTICAL
|
||||
// !USE_EXPERIMENTAL: 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()
|
||||
}
|
||||
Reference in New Issue
Block a user