Files
kotlin-fork/native/native.tests/testData/klib/dump-metadata/builtinsSerializer/annotationTargets.txt
T
Dmitriy Dolovov cb92990ed6 [KLIB][tests] Reorganize "klib dump-metadata" tests
- Keep the test data under "native/native.tests/testData/klib/" dir
- Rename tests from "klib contents" to "klib dump-metadata"
2023-08-16 19:11:35 +00:00

15 lines
865 B
Plaintext
Vendored

@anno(x = "top level class") class C1 @anno(x = "constructor") constructor() {
@anno(x = "member property") val p3: Nothing?
@anno(x = "member extension property") val Int.v4: Int
@anno(x = "member function") fun f3(@anno(x = "member function parameter") p: Int)
@anno(x = "member extension function") fun String.f4()
@anno(x = "nested class") class C2 constructor()
@anno(x = "companion object") companion object
}
annotation class anno constructor(x: String) : Annotation {
val x: String
}
@anno(x = "top level function") fun f1(@anno(x = "top level function parameter") p: Int)
@anno(x = "extension function") fun Long.f2(@anno(x = "extension function parameter") p: Int)
@anno(x = "top level property") val p1: Nothing?
@anno(x = "extension property") val Double.p2: Double