mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
28 lines
304 B
Plaintext
28 lines
304 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
|
|
mapping bar: u8 => u8;
|
|
|
|
@program
|
|
function bar(a: u8) -> u8 {
|
|
return a + 1u8;
|
|
}
|
|
|
|
@program
|
|
function foo(bar: u8) -> u8 {
|
|
return bar + 1u8;
|
|
}
|
|
|
|
@program
|
|
function baz(a: u8) -> u8 {
|
|
let bar: u8 = a + 1u8;
|
|
return bar;
|
|
}
|
|
|
|
circuit bar {
|
|
a: u64;
|
|
}
|