Files
kotlin-fork/compiler/testData/codegen/boxInline/private/kt8094.kt
T
2018-06-28 12:26:41 +02:00

25 lines
274 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
object X {
private fun f() { }
internal inline fun g(x: () -> Unit) {
x()
f()
}
}
// FILE: 2.kt
import test.*
fun box(): String {
var r = "fail"
X.g { r = "OK" }
return r;
}