mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
12 lines
143 B
Kotlin
12 lines
143 B
Kotlin
class C() {
|
|
default object {
|
|
fun create() = C()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val c = C.create()
|
|
return if (c is C) "OK" else "fail"
|
|
}
|
|
|