blob: 252ddfe45f27a43e621a08513cf51b9dfc9f712c [file]
// PLATFORM_DEPENDANT_METADATA
// ^ Serializing file annotations to metadata is not implemented in Kotlin/JVM. See OSIP-1095.
@file:MyFileAnnotationSource("hello")
@file:MyFileAnnotationBinary("world")
@file:MyFileAnnotationRuntime("!")
package test
@Target(AnnotationTarget.FILE)
@Retention(AnnotationRetention.SOURCE)
annotation class MyFileAnnotationSource(val value: String)
@Target(AnnotationTarget.FILE)
@Retention(AnnotationRetention.BINARY)
annotation class MyFileAnnotationBinary(val value: String)
@Target(AnnotationTarget.FILE)
@Retention(AnnotationRetention.RUNTIME)
annotation class MyFileAnnotationRuntime(val value: String)
class A
typealias B = A
fun foo(x: Int) = 42
val bar: Int
get() = 42