mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-19 15:41:36 +03:00
19 lines
318 B
Plaintext
19 lines
318 B
Plaintext
|
/*
|
||
|
namespace: Compile
|
||
|
expectation: Pass
|
||
|
input_file:
|
||
|
- inputs/basic.in
|
||
|
*/
|
||
|
|
||
|
type int = u32;
|
||
|
type number = int;
|
||
|
|
||
|
function main(x: u32, y: bool) -> bool {
|
||
|
let a: int = x;
|
||
|
let b: number = 2u32;
|
||
|
let c: number = 3;
|
||
|
let d: u32 = a + b + c;
|
||
|
|
||
|
return a == 1u32 && b == 2u32
|
||
|
&& c == 3u32 && d == 6u32 && y;
|
||
|
}
|