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

10 lines
144 B
Text

def foo<N>(field[N] inputs) -> bool {
assert(N <= 5);
return true;
}
def main() {
bool b = foo([1, 2, 3, 4, 5, 6]);
return;
}