[JS IR BE] support Char.rangeTo()

This commit is contained in:
Anton Bannykh
2018-09-18 15:41:38 +03:00
parent 89bec8ec59
commit 7d5a304cf6
30 changed files with 1 additions and 30 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ public class Char(value: Int) : Comparable<Char> {
public operator fun dec(): Char = Char(value - 1)
/** Creates a range from this value to the specified [other] value. */
public operator fun rangeTo(other: Char): CharRange = null!! // TODO
public operator fun rangeTo(other: Char): CharRange = CharRange(this, other)
/** Returns the value of this character as a `Byte`. */
public fun toByte(): Byte = value.toByte()