mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 15:31:32 +03:00
17 lines
223 B
Plaintext
17 lines
223 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
|
|
function foo() -> field {
|
|
return myGlobal;
|
|
}
|
|
|
|
function main() {
|
|
const myGlobal = 42field;
|
|
const err = foo();
|
|
|
|
// TODO: update after field comparison is enabled
|
|
}
|