Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/KotlinPropertyAsAnnotationParameter.B.kt
T
2015-09-18 10:14:32 +03:00

27 lines
591 B
Kotlin
Vendored

import a.*
@Ann(i, s, f, d, l, b, bool, c, str)
class MyClass1
@Ann(i2, s2, f2, d2, l2, b2, bool2, c2, str2)
class MyClass2
@Retention(AnnotationRetention.RUNTIME)
annotation class Ann(
val i: Int,
val s: Short,
val f: Float,
val d: Double,
val l: Long,
val b: Byte,
val bool: Boolean,
val c: Char,
val str: String
)
fun main(args: Array<String>) {
// Trigger annotation loading
(MyClass1() as java.lang.Object).getClass().getAnnotations()
(MyClass2() as java.lang.Object).getClass().getAnnotations()
}