Files
kotlin/compiler/testData/codegen/box/callableReference/function/topLevelFromTopLevelStringNoArgs.kt
2019-11-19 11:00:09 +03:00

15 lines
198 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun foo() = "OK"
fun box(): String {
val x = ::foo
var r = x()
if (r != "OK") return r
r = run(::foo)
if (r != "OK") return r
return "OK"
}