mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
14 lines
278 B
Kotlin
Vendored
14 lines
278 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_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()
|
|
}
|