mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
175 B
Kotlin
Vendored
13 lines
175 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class C() {
|
|
companion object {
|
|
fun create() = C()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
val c = C.create()
|
|
return if (c is C) "OK" else "fail"
|
|
}
|
|
|