mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
200 B
Kotlin
Vendored
13 lines
200 B
Kotlin
Vendored
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"
|
|
}
|
|
|