mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 00:21:28 +00:00
17 lines
321 B
Kotlin
Vendored
17 lines
321 B
Kotlin
Vendored
// FILE: 1.kt
|
|
// LANGUAGE_VERSION: 1.2
|
|
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
|
package test
|
|
|
|
inline fun inlineFun(param: String, lambda: String.() -> String = { this }): String {
|
|
return param.lambda()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
// CHECK_CONTAINS_NO_CALLS: box
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun("OK")
|
|
} |