mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
22 lines
421 B
Kotlin
Vendored
22 lines
421 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// WITH_RUNTIME
|
|
// KOTLIN_CONFIGURATION_FLAGS: +JVM.INHERIT_MULTIFILE_PARTS
|
|
// FILE: box.kt
|
|
|
|
import a.*
|
|
|
|
fun box(): String = ok {}
|
|
|
|
// FILE: part1.kt
|
|
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
|
package a
|
|
|
|
val O = run { "O" }
|
|
const val K = "K"
|
|
|
|
inline fun ok(block: () -> Unit): String {
|
|
block()
|
|
return O + K
|
|
} |