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

17 lines
223 B
Text

// this should not compile, as A == B
const u32 A = 1;
const u32 B = 1;
def foo(field[A] a) -> bool {
return true;
}
def foo(field[B] a) -> bool {
return true;
}
def main() {
assert(foo([1]));
return;
}