21 lines
359 B
Kotlin
Vendored
21 lines
359 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// IGNORE_LIGHT_ANALYSIS
|
|
// WITH_RUNTIME
|
|
// !INHERIT_MULTIFILE_PARTS
|
|
// FILE: result.kt
|
|
|
|
@file:JvmName("Util")
|
|
@file:JvmMultifileClass
|
|
package test
|
|
|
|
fun result(): String = "OK"
|
|
|
|
// FILE: test.kt
|
|
|
|
import test.result
|
|
|
|
private inline fun id(f: () -> String): String = f()
|
|
|
|
fun box(): String = id { result() }
|