Files
kotlin-fork/compiler/testData/codegen/boxInline/private/kt6453.kt
T

21 lines
246 B
Kotlin
Vendored

// 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
}