Files
kotlin-fork/backend.native/tests/external/codegen/box/strings/kt889.kt
T
2017-03-13 15:31:46 +03:00

13 lines
301 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
operator 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"
}