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

22 lines
272 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
class A() {
private val x = "OK"
internal inline fun foo(p: (String) -> Unit) {
p(x)
}
}
// FILE: 2.kt
import test.*
fun box(): String {
var r = "fail"
A().foo { r = it }
return r
}