leo/compiler/tests/circuits/define_circuit_inside_circuit_function.leo

13 lines
153 B
Plaintext
Raw Normal View History

circuit Foo {
a: u32,
}
circuit Bar {
2020-12-01 19:54:51 +03:00
function bar() {
const f = Foo { a: 0u32 };
}
}
function main() {
const b = Bar::bar();
}