mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
10 lines
216 B
Kotlin
Vendored
10 lines
216 B
Kotlin
Vendored
import kotlin.test.assertEquals
|
|
|
|
fun String.sum(other: String = "b") = this + other
|
|
|
|
fun box(): String {
|
|
val f = String::sum
|
|
assertEquals("ab", f.callBy(mapOf(f.parameters.first() to "a")))
|
|
return "OK"
|
|
}
|