mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
20 lines
342 B
Kotlin
Vendored
20 lines
342 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.*
|
|
|
|
object Host {
|
|
@JvmStatic fun foo(x: String) = x
|
|
}
|
|
|
|
class CompanionOwner {
|
|
companion object {
|
|
@JvmStatic fun bar(x: String) = x
|
|
}
|
|
}
|
|
|
|
fun box(): String =
|
|
(Host::foo).call("O") + (CompanionOwner.Companion::bar).call("K")
|