leo/tests/compiler/mutability/array_tuple_mut.leo

12 lines
192 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Pass
*/
2020-12-11 22:21:46 +03:00
function main() {
let a = [(1u32, 2u32)];
2020-12-11 22:21:46 +03:00
a[0u32].1 = 3u32;
console.assert(a[0u32].0 == 1u32);
console.assert(a[0u32].1 == 3u32);
}