mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
17 lines
301 B
Kotlin
Vendored
17 lines
301 B
Kotlin
Vendored
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
|
// 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()
|
|
} |