Closed Pseudow closed 9 months ago
The operations are there, but they implicitly cast to UInt
.
Operator plus
is declared
@kotlin.internal.InlineOnly public final inline operator fun plus(other: kotlin.UShort): kotlin.UInt
So you have to write
val uShort3: UShort = (uShort1 + uShort2).toUShort()
Also, this repository is not meant for general feature requests. As stated in README, it describes design notes of language changes which are already being coordinated with Kotlin language designers. To share your feature requests or bug reports, please consider using YouTrack.
@r4zzz4k is completely right here. Please use YouTrack for feature requests or bug reports
Could we please add some kind of operations between Unsigned types like for example this: