Files
kotlin/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/callableReferences/functionImportedFromObject.kt
2018-06-28 12:26:41 +02:00

25 lines
355 B
Kotlin
Vendored

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