mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-02 23:07:27 +03:00
18 lines
249 B
Plaintext
18 lines
249 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
program test.aleo {
|
|
function foo(a: ()) -> u8 {
|
|
console.assert_eq(1u8, 2u8);
|
|
return 3u8;
|
|
}
|
|
|
|
transition bar(a: u8, b: u8) -> u8 {
|
|
foo(());
|
|
return a + b;
|
|
}
|
|
|
|
}
|