Files
kotlin/compiler/testData/codegen/box/classes/classObjectInTrait.kt
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

13 lines
206 B
Kotlin

// EA-38323 - Illegal field modifiers in class: classObject field in C must be static and final
trait C {
default object {
public val FOO: String = "OK"
}
}
fun box(): String {
return C.FOO
}