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

8 lines
136 B
Text

def main() -> field {
field a = 2;
// field a = 3 <- not allowed
for u32 i in 0..5 {
// field a = 7 <- not allowed
}
return a;
}