Files
Pavel Kirpichenkov 142c49e93c Add test checking file annotations resolution
^KT-37219 Fixed

Original commit: 79d7babb5761e70c7827e1f726332294447be7cd

GitOrigin-RevId: 235e0b0e5cfb0bd020971a2487017906cf78ab75
2020-08-06 22:29:45 +03:00

14 lines
331 B
Kotlin

// 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 {
}