leo/tests/compiler/tuple/assign_unit_fail.leo
2022-11-08 15:49:47 -08:00

21 lines
280 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
program test.aleo {
transition foo(a: u8) -> u8 {
let b: () = ();
return a + a;
}
transition baz(a: u8) -> u8 {
let b: () = bar();
return a + a;
}
transition bar(a: u8) -> () {}
}