JVM: Add FILE target to the JvmSynthetic annotation (#4149)

This commit is contained in:
Steven Schäfer
2021-02-24 17:01:12 +01:00
committed by Alexander Udalov
parent b45d5abeb1
commit 057ead358c
3 changed files with 11 additions and 13 deletions
@@ -72,7 +72,7 @@ internal actual annotation class JvmPackageName(actual val name: String)
* This annotation is intended for *rare cases* when API designer needs to hide Kotlin-specific target from Java API
* while keeping it a part of Kotlin API so the resulting API is idiomatic for both languages.
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FIELD)
@Target(AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
public actual annotation class JvmSynthetic