mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-27 12:17:35 +03:00
22 lines
385 B
Plaintext
22 lines
385 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
*/
|
|
|
|
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;
|
|
}
|
|
|
|
}
|