Files
kotlin/compiler/testData/codegen/boxInline/defaultValues/kt18689.kt
2018-08-09 14:22:50 +03:00

21 lines
263 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)
}