cca6ba38be
#KT-16790 Obsolete #KT-16858 Obsolete #KT-17441 Obsolete
15 lines
282 B
Kotlin
Vendored
15 lines
282 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR, JS_IR
|
|
|
|
fun WithCompanion.test(): String {
|
|
object : WithCompanion(this) {}
|
|
return "OK"
|
|
}
|
|
|
|
open class WithCompanion(a: WithCompanion.Companion) {
|
|
companion object
|
|
}
|
|
|
|
fun box(): String {
|
|
return WithCompanion(WithCompanion.Companion).test()
|
|
}
|