Files
kotlin/compiler/testData/compileJavaAgainstKotlin/class/ClassObject.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

27 lines
371 B
Kotlin

package test
class WithClassObject {
default object {
fun foo() {}
val value: Int = 0
val valueWithGetter: Int
get() = 1
var variable: Int = 0
var variableWithAccessors: Int
get() = 0
set(v) {}
}
class MyInner {
fun foo() {}
val value: Int = 0
}
}
object PackageInner {
fun foo() {}
val value: Int = 0
}