. Is it possible to implement an unbalanced equals override that will let me compare these without having to put toUByte() or toUInt() in everywhere. I tried something like:
fun UInt.equals(b:UByte) : Boolean {
return this == b.toUInt()
}
(and the reverse as well)
But == sites still complain
d
devbridie
10/30/2019, 6:55 PM
infix fun UByte.eq(other: UInt) = toUInt() == other