Files
kotlin/compiler/testData/compileJavaAgainstKotlin/platformStatic/simpleClassObject.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

38 lines
526 B
Kotlin

package test
import kotlin.platform.platformStatic
class A {
default object {
val b: String = "OK"
platformStatic fun test1() {
b
test2()
test3()
"".test4()
}
platformStatic fun test2() {
b
}
fun test3() {
}
platformStatic fun String.test4() {
b
}
}
}
fun main(args: Array<String>) {
A.test1()
A.test2()
A.test3()
with(A) {
A.test1()
}
}