Files
kotlin-fork/compiler/testData/codegen/box/reflection/call/bound/extensionFunction.kt
T
2023-06-07 14:59:38 +00:00

11 lines
198 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_REFLECT
import kotlin.reflect.*
fun String.foo(x: String) = this + x
fun String?.bar(x: String) = x
fun box() =
(""::foo).call("O") + (null::bar).call("K")