leo/compiler/tests/function/scope_fail.leo

8 lines
118 B
Plaintext
Raw Normal View History

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