Files
kotlin/compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.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

31 lines
503 B
Kotlin

//ALLOW_AST_ACCESS
package test
trait Test {
default object {
public val prop1 : Int = 10
public var prop2 : Int = 11
protected set
public val prop3: Int = 12
get() {
return $prop3
}
var prop4 : Int = 13
fun incProp4() {
$prop4++
}
public var prop5 : Int = 14
public var prop7 : Int = 20
set(i: Int) {
$prop7++
}
}
}