mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-27 12:17:35 +03:00
19 lines
264 B
Plaintext
19 lines
264 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
program test.aleo {
|
|
|
|
function foo() -> field {
|
|
return myGlobal;
|
|
}
|
|
|
|
function main() -> field {
|
|
const myGlobal = 42field;
|
|
const err = foo();
|
|
|
|
return err;
|
|
}
|
|
}
|