mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
12 lines
188 B
Kotlin
Vendored
12 lines
188 B
Kotlin
Vendored
package test
|
|
|
|
inline fun foo(x: String) = x
|
|
|
|
class A {
|
|
fun test(s: String) = s
|
|
}
|
|
|
|
inline fun processRecords(block: (String) -> String): String {
|
|
return A().test(block(foo("K")))
|
|
}
|