leo/tests/compiler/tuple/function_unit_input_fail.leo
2022-11-08 15:52:31 -08:00

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;
}
}