mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
20 lines
243 B
Plaintext
20 lines
243 B
Plaintext
|
/*
|
||
|
namespace: Compile
|
||
|
expectation: Fail
|
||
|
*/
|
||
|
|
||
|
|
||
|
program test.aleo {
|
||
|
struct s1 {
|
||
|
f1: u32,
|
||
|
f2: u32
|
||
|
}
|
||
|
|
||
|
transition main(id_type: i8, s: s1) -> i8 {
|
||
|
let x: i8 = s.f1;
|
||
|
x = x + 1i8;
|
||
|
return x;
|
||
|
}
|
||
|
}
|
||
|
|