Demonstrate that a bug with numeric methods is resolved
This PR adds a test case to demonstrate that the bug described in
is resolved.
Closes
@@ -12,6 +12,10 @@ const B1 = Address {
};
fn main() -> u64 {
+ let a = Result::Ok::<u64, u64>(100);
+ let b = if let Result::Ok(y) = a { y + 10 } else { 1 };
+ assert(b == 110);
+
let sender = Identity::Address(B1);
if let Identity::Address(addr1) = sender {
match sender {
