1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/structs/constant_in_member.zok
Thibaut Schaeffer d8ae907030
Fix constant in struct type (#965)
* add breaking test

* implement from constant for uint

* tweak

* tweak

* revert and add breaking test

* implement from
2021-08-16 10:44:00 +02:00

11 lines
No EOL
128 B
Text

const u32 SIZE = 42
struct Foo {
field[SIZE] foo
}
def main():
Foo f = Foo {
foo: [42; SIZE]
}
return