Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/experimental/useExperimentalOnWholeModule.kt
T
2021-07-23 23:58:55 +03:00

26 lines
411 B
Kotlin
Vendored

// FIR_IDENTICAL
// FIR_IDE_IGNORE
// !USE_EXPERIMENTAL: 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()
}