mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 15:15:47 +03:00
30 lines
549 B
Plaintext
30 lines
549 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
program test.aleo {
|
|
function foo(a: u8, b: u8) -> u8 {
|
|
async finalize(a, b);
|
|
return a + b;
|
|
}
|
|
|
|
function bar(a: u8, b: u8) -> u8 {
|
|
return a + b;
|
|
}
|
|
|
|
finalize bar(a: u8, b: u8) -> u8 {
|
|
return a + b;
|
|
}
|
|
|
|
|
|
function mint_public(receiver: address, amount: u64) {
|
|
async finalize(receiver, amount);
|
|
}
|
|
|
|
finalize mint_public(receiver: address, amount: u64) {
|
|
increment(account, receiver, amount);
|
|
}
|
|
|
|
}
|