Files
kotlin-fork/backend.native/tests/external/codegen/box/classes/namedClassObject.kt
T
2017-03-13 15:31:46 +03:00

13 lines
200 B
Kotlin

class C() {
companion object Foo {
fun create() = 3
}
}
fun box(): String {
val c1 = C.Foo.create()
val c2 = C.create()
return if (c1 == 3 && c2 == 3) "OK" else "fail"
}