leo/compiler/tests/tuples/nested_access.leo

8 lines
178 B
Plaintext
Raw Normal View History

2020-08-11 05:40:49 +03:00
function main() {
const a = (true, false);
const b = (true, a);
2020-08-11 05:40:49 +03:00
2020-08-17 05:14:26 +03:00
console.assert(b.0 == true);
console.assert(b.1.0 == true);
console.assert(b.1.1 == false);
2020-08-11 05:40:49 +03:00
}