Files
kotlin-fork/idea/testData/resolve/resolveModeComparison/FileAnnotations.kt
T
Pavel Kirpichenkov 79d7babb57 Add test checking file annotations resolution
#KT-37219 Fixed
2020-07-14 17:07:42 +03:00

14 lines
331 B
Kotlin
Vendored

// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
@file:OptIn(Experimental::class)
@Retention(value = AnnotationRetention.BINARY)
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
annotation class Experimental
object MyObject
@Experimental
operator fun MyObject.invoke(closure: () -> Unit) {}
fun d() = <caret>MyObject {
}