Add test checking file annotations resolution
#KT-37219 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// 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 {
|
||||
}
|
||||
Reference in New Issue
Block a user