mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
12 lines
249 B
Kotlin
Vendored
12 lines
249 B
Kotlin
Vendored
// TODO: investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// 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") |