1
0
Fork 0
mirror of synced 2025-09-23 04:08:33 +00:00
ZoKrates/zokrates_cli/examples/tuples/set_member.zok
2022-06-21 15:03:53 +02:00

19 lines
243 B
Text

struct Bar {
field[2] c;
bool d;
}
struct Foo {
Bar a;
bool b;
}
def main() -> ((field[2], bool), bool) {
((field[2], bool), bool)[2] f = [
(([0, 0], false), true),
(([0, 0], false), true)
];
f[0].0.0 = [42, 43];
return f[0];
}