mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
10 lines
188 B
Kotlin
10 lines
188 B
Kotlin
fun Int.plus(s: String) : String {
|
|
System.out?.println("Int.plus(s: String) called")
|
|
return s
|
|
}
|
|
|
|
fun box() : String {
|
|
val s = "${1 + "a"}"
|
|
return if(s == "a") "OK" else "fail"
|
|
}
|