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

14 lines
202 B
Text

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