leo/tests/compiler/function/program_function_with_mode.leo

22 lines
385 B
Plaintext
Raw Normal View History

2022-09-08 09:09:11 +03:00
/*
namespace: Compile
expectation: Pass
*/
2022-10-06 02:53:49 +03:00
program test.aleo {
transition foo(a: u8, b: u8) -> public u8 {
return a + b;
}
// TODO: Need to test private modifier when it is supported.
transition foo1(a: u8, b: u8) -> u8 {
return a + b;
}
transition foo2(a: u8, public b: u8) -> public u8 {
return a + b;
}
2022-09-08 09:09:11 +03:00
}