Files
kotlin-fork/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/propertyReferenceFromObject.kt
T
2021-02-02 17:53:52 +03:00

20 lines
262 B
Kotlin
Vendored

// SKIP_INLINE_CHECK_IN: inlineFun$default
// FILE: 1.kt
package test
object A {
val ok = "OK"
}
inline fun inlineFun(lambda: () -> String = A::ok): String {
return lambda()
}
// FILE: 2.kt
import test.*
fun box(): String {
return inlineFun()
}