Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/AnnotationInTrait.B.kt
T
2014-12-23 15:18:46 +03:00

9 lines
264 B
Kotlin

class C : a.Tr
fun main(args: Array<String>) {
val method = javaClass<C>().getDeclaredMethod("foo")
val annotations = method.getDeclaredAnnotations().joinToString("\n")
if (annotations != "@a.Ann()") {
throw AssertionError(annotations)
}
}