Files
kotlin-fork/compiler/testData/serialization/builtinsSerializer/annotationTargets.txt
T
Mikhail Glukhikh 1eac4d67de "annotation" is now parsed as an identifier. It is no longer a soft keyword.
Sometimes it's allowed to parse "annotation" unescaped even if other annotations must be escaped.
A set of annotations and their options tests.
A swarm of existing tests fixed (mostly kotlin.annotation.annotation() added to txt-files).
STUB_VERSION increased. Some quick fixes slightly changed.
2015-07-14 16:24:55 +03:00

28 lines
1.3 KiB
Plaintext
Vendored

package test
test.anno(x = "top level property") internal val p1: kotlin.Nothing?
test.anno(x = "extension property") internal val kotlin.Double.p2: kotlin.Double
test.anno(x = "top level function") internal fun f1(/*0*/ test.anno(x = "top level function parameter") p: kotlin.Int): kotlin.Unit
test.anno(x = "extension function") internal fun kotlin.Long.f2(/*0*/ test.anno(x = "extension function parameter") p: kotlin.Int): kotlin.Unit
test.anno(x = "top level class") internal final class C1 {
test.anno(x = "constructor") public constructor C1()
test.anno(x = "member property") internal final val p3: kotlin.Nothing?
test.anno(x = "member extension property") internal final val kotlin.Int.v4: kotlin.Int
test.anno(x = "member function") internal final fun f3(/*0*/ test.anno(x = "member function parameter") p: kotlin.Int): kotlin.Unit
test.anno(x = "member extension function") internal final fun kotlin.String.f4(): kotlin.Unit
test.anno(x = "nested class") internal final class C2 {
public constructor C2()
}
test.anno(x = "companion object") public companion object Companion {
private constructor Companion()
}
}
kotlin.annotation.annotation() internal final annotation class anno : kotlin.Annotation {
public constructor anno(/*0*/ x: kotlin.String)
internal final val x: kotlin.String
}