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

8 lines
117 B
Plaintext

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