leo/tests/compiler/tuple/tuple_in_assignment.leo

14 lines
209 B
Plaintext
Raw Normal View History

2022-10-12 07:21:57 +03:00
/*
namespace: Compile
2022-10-13 03:03:39 +03:00
expectation: Pass
2022-10-12 07:21:57 +03:00
*/
program test.aleo {
2022-10-13 03:03:39 +03:00
transition baz(foo: u8, bar: u16) -> u8 {
let a: (u8, u16) = (foo, bar);
2022-10-12 07:21:57 +03:00
a = (3u8, 4u16);
return 1u8 + 1u8;
}
}