Generate toString implementation for unsigned types

This commit is contained in:
Ilya Gorbunov
2018-05-08 17:50:41 +03:00
parent e988ea5a1c
commit 0eee258fce
6 changed files with 42 additions and 1 deletions
@@ -123,6 +123,8 @@ public inline class UByte internal constructor(private val data: Byte) : Compara
public fun toUInt(): UInt = data.toUInt()
public fun toULong(): ULong = data.toULong()
public override fun toString(): String = toInt().toString()
}
public fun Byte.toUByte(): UByte = UByte(this)