leo/compiler/tests/function/scope_fail.leo
2020-07-07 19:53:37 -07:00

8 lines
118 B
Plaintext

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