mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
26 lines
421 B
Kotlin
Vendored
26 lines
421 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// WITH_RUNTIME
|
|
// FILE: box.kt
|
|
|
|
package test
|
|
|
|
import a.foo
|
|
|
|
fun box(): String = foo { "OK" }
|
|
|
|
// FILE: foo.kt
|
|
|
|
@file:[JvmName("A") JvmMultifileClass]
|
|
package a
|
|
|
|
inline fun foo(body: () -> String): String = zee(body())
|
|
|
|
// FILE: zee.kt
|
|
|
|
@file:[JvmName("A") JvmMultifileClass]
|
|
package a
|
|
|
|
public fun zee(x: String): String = x
|