FIR: add OptIn checkers draft + some annotation / SinceKotlin utilities

This commit is contained in:
Mikhail Glukhikh
2021-06-11 19:05:39 +03:00
parent bd39e457a7
commit ceb527c5e4
30 changed files with 617 additions and 46 deletions
@@ -35,10 +35,10 @@ fun f4(u: OptIn0 /* TODO */) {}
annotation class VarargKClasses(vararg val k: KClass<*>)
@VarargKClasses(
RequiresOptIn::class,
OptIn::class,
kotlin.RequiresOptIn::class,
kotlin.OptIn::class
<!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>RequiresOptIn<!>::class,
<!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>OptIn<!>::class,
<!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>kotlin.RequiresOptIn<!>::class,
<!EXPERIMENTAL_CAN_ONLY_BE_USED_AS_ANNOTATION!>kotlin.OptIn<!>::class
)
fun f5() {}