mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 15:53:18 +00:00
16 lines
309 B
Kotlin
Vendored
16 lines
309 B
Kotlin
Vendored
// FILE: 1.kt
|
|
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
|
package test
|
|
|
|
@Suppress("NOT_YET_SUPPORTED_IN_INLINE")
|
|
inline fun inlineFun(capturedParam: String, lambda: () -> String = { capturedParam }): String {
|
|
return lambda()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun("OK")
|
|
} |