leo/tests/compiler/finalize/private_input_ouput_fail.leo
2022-11-12 09:52:52 -08:00

25 lines
398 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
program test.aleo {
transition foo(public a: u8) -> u8 {
async finalize(a);
return a + a;
}
finalize foo(private a: u8) -> u8 {
return a * a;
}
transition bar(public a: u8) -> u8 {
async finalize (a);
return a + a;
}
finalize bar(a: u8) -> private u8 {
return a * a;
}
}