Files
kotlin/compiler/testData/codegen/box/classes/extensionOnNamedClassObject.kt
2019-11-19 11:00:09 +03:00

14 lines
221 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class C() {
companion 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"
}