mzgreen
06/11/2019, 1:40 PMval foo = 0x1u it's treated as Int.
Is there a way to make it something else without providing a type? For example:
val foo: UByte = 0x1u
when(foo) {
0x1u -> {} // doesn't work because 0x1u is treated as an Int
}
I can do 0x1.toUByte() but it's ugly. Is there maybe something like 0x1ub suffix or sth like that?mzgreen
06/11/2019, 2:06 PM