1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/tuples/generic.zok
2022-04-06 20:23:58 +02:00

14 lines
228 B
Text

struct B<P> {
field[P] a;
}
struct A<N> {
field[N] a;
B<N> b;
}
def main((field[2], (field[2],)) a) -> bool {
u32 SIZE = 1 + 1;
(field[SIZE], (field[SIZE],)) b = ([1, 2], ([1, 2],)) ;
return a == b;
}