mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
16 lines
262 B
Kotlin
Vendored
16 lines
262 B
Kotlin
Vendored
// FILE: 1.kt
|
|
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
|
package test
|
|
|
|
fun foo(a: Number): String = "OK"
|
|
|
|
inline fun inlineFun(s: (Double) -> String = ::foo): String {
|
|
return s(1.0)
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun()
|
|
} |