leo/asg/tests/fail/function/scope_fail.leo

8 lines
121 B
Plaintext

function foo() -> field {
return myGlobal
}
function main() {
const myGlobal = 42field;
const err = foo();
}