mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
11 lines
219 B
Kotlin
Vendored
11 lines
219 B
Kotlin
Vendored
fun test1(): Int {
|
|
val inlineX = Inline()
|
|
return inlineX.foo({ z: Int -> "" + z}, 25, fun String.(): Int = this.length)
|
|
}
|
|
|
|
fun box(): String {
|
|
if (test1() != 2) return "test1: ${test1()}"
|
|
|
|
return "OK"
|
|
}
|