For instance:
n::Uint8 = 0x00 x::Uint8 = n + 0x10 ERROR: type: typeassert: expected Uint8, got Uint64
I assume this happens because methods(+) for a::Uint8, b::Uint8 not defined, so n automatically rises to Uint64 . Is there a better way to handle this than to drop everything back to it with a preliminary raise after each operation? Isn't that what the interpreter should be able to process automatically (i.e. if it was told x after adding add Uint8 )?
source share