Files
kotlin-fork/compiler/testData/codegen/box/classes/extensionOnNamedClassObject.kt
T
2015-02-16 15:38:29 +03:00

13 lines
187 B
Kotlin

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