Files
kotlin-fork/j2k/testData/fileOrElement/annotations/annotationInterface3.kt
T
2015-09-18 15:44:18 +03:00

20 lines
374 B
Kotlin
Vendored

// ERROR: Body is not allowed for annotation class
// ERROR: Modifier 'companion' is not applicable inside 'annotation class'
internal annotation class Anon(val value: String) {
enum class E {
A, B
}
companion object {
val field = E.A
}
}
@Anon("a")
internal interface I {
companion object {
val e: Anon.E = Anon.field
}
}