mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
17 lines
336 B
Kotlin
Vendored
17 lines
336 B
Kotlin
Vendored
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
|
|
// FILE: 1.kt
|
|
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
|
package test
|
|
|
|
class Item
|
|
|
|
inline fun inlineFun(number: String, getItem: ((String) -> String?) = { null }): String {
|
|
return number + (getItem(number) ?: "")
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun("OK")
|
|
} |