mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
13 lines
189 B
Kotlin
13 lines
189 B
Kotlin
class C() {
|
|
default 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"
|
|
}
|
|
|