Files
kotlin/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionReferenceFromObject.kt
2019-11-20 12:57:36 +01:00

22 lines
281 B
Kotlin
Vendored

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