Add test checking file annotations resolution

#KT-37219 Fixed
This commit is contained in:
Pavel Kirpichenkov
2020-07-14 12:52:22 +03:00
parent 36a46482c5
commit 79d7babb57
11 changed files with 316 additions and 0 deletions
@@ -0,0 +1,14 @@
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
@file:/*All (1)*/OptIn/*(1)*/(/*All (2)*/Experimental/*(2)*/::class)
/*All (3)*/@/*All (4)*/Retention/*(4)*/(/*None (5)*/value/*(5)*/ = /*None (6)*/AnnotationRetention/*(6)*/./*None (7)*/BINARY/*(7)*/)
@/*All (8)*/RequiresOptIn/*(8)*/(/*All (9)*/level/*(9)*/ = /*All (10)*/RequiresOptIn/*(10)*/./*All (11)*/Level/*(11)*/./*All (12)*/WARNING/*(12)*/)
annotation class Experimental/*(3)*/
/*All (13)*/object MyObject/*(13)*/
/*All (14)*/@/*All (15)*/Experimental/*(15)*/
operator fun /*All (16)*/MyObject/*(16)*/.invoke(/*All (17)*/closure: () -> /*All (18)*/Unit/*(18)*//*(17)*/) {}/*(14)*/
/*All (19)*/fun d() = /*All (20)*//*All (21)*/MyObject/*(21)*/ {
}/*(20)*//*(19)*/