mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 07:11:53 +03:00
27 lines
384 B
Plaintext
27 lines
384 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
program test.aleo {
|
|
|
|
mapping bar: u8 => u8;
|
|
|
|
transition bar(a: u8) -> u8 {
|
|
return a + 1u8;
|
|
}
|
|
|
|
transition foo(bar: u8) -> u8 {
|
|
return bar + 1u8;
|
|
}
|
|
|
|
transition baz(a: u8) -> u8 {
|
|
let bar: u8 = a + 1u8;
|
|
return bar;
|
|
}
|
|
|
|
struct bar {
|
|
a: u64;
|
|
}
|
|
}
|