leo/tests/old/pass/circuits/define_circuit_inside_circuit_function.leo

13 lines
153 B
Plaintext
Raw Normal View History

2021-03-03 20:59:24 +03:00
circuit Foo {
a: u32,
}
circuit Bar {
function bar() {
const f = Foo { a: 0u32 };
2021-03-03 20:59:24 +03:00
}
}
function main() {
const b = Bar::bar();
2021-03-03 20:59:24 +03:00
}