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

22 lines
264 B
Kotlin
Vendored

// FILE: 1.kt
package test
class Foo {
fun foo() = "OK"
}
inline fun inlineFn(crossinline fn: () -> String, x: Int? = 1): String {
return fn()
}
// FILE: 2.kt
import test.*
private val foo = Foo()
fun box(): String {
return inlineFn(foo::foo)
}