Files
kotlin-fork/js/js.translator/testData/char/cases/charBinaryOperations.kt
T
Ilya Gorbunov 1605027b19 Change return type of Char plus Int and Char minus Int binary operations.
JS: Remove unnecessary intrinsic binary operation patterns, adjust intrinsics for binary operations with char.
2015-07-04 04:47:00 +03:00

11 lines
148 B
Kotlin
Vendored

package foo
fun box(): String {
assertEquals('K', 'A' + 10)
assertEquals('7', 'A' - 10)
assertEquals(3, 'd' - 'a')
return "OK"
}