Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/simpleClosure.kt
T
2018-04-19 13:17:28 +03:00

13 lines
257 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1109
// This test was adapted from compiler/testData/codegen/box/callableReference/function/local/.
package foo
fun box(): String {
val result = "OK"
fun foo() = result
return (::foo)()
}