Files
kotlin-fork/j2k/testData/fileOrElement/annotations/annotationInterface3.kt
T
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00

20 lines
310 B
Kotlin

// ERROR: Body is not allowed for annotation class
annotation class Anon(public val value: String) {
public enum class E {
A
B
}
default object {
public val field: E = E.A
}
}
Anon("a")
trait I {
default object {
public val e: Anon.E = Anon.field
}
}