mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-25 10:32:13 +03:00
17 lines
194 B
Plaintext
17 lines
194 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
|
|
function foo() -> field {
|
|
return myGlobal;
|
|
}
|
|
|
|
function main() -> field {
|
|
const myGlobal = 42field;
|
|
const err = foo();
|
|
|
|
return err;
|
|
}
|