leo/compiler/tests/circuits/duplicate_name_context.leo

13 lines
210 B
Plaintext
Raw Normal View History

2021-02-08 21:44:30 +03:00
circuit Bar {
b2: u32
function add_five(z:u32) -> u32 {
return z+5u32;
2021-02-08 21:44:30 +03:00
}
}
function main () {
const Bar = 66u32;
const k1 = Bar{ b2: 30u32 };
const k2 = Bar::add_five(55u32);
2021-02-08 21:44:30 +03:00
}