mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-29 20:44:52 +03:00
25 lines
318 B
Plaintext
25 lines
318 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/basic.in
|
|
*/
|
|
|
|
type int = u32;
|
|
|
|
circuit Foo {
|
|
a: u32;
|
|
}
|
|
|
|
circuit Bar {
|
|
a: int;
|
|
}
|
|
|
|
function main(x: u32, y: bool) -> bool {
|
|
let a: int = x;
|
|
let f: Foo = Foo { a };
|
|
let b: Bar = Bar { a };
|
|
|
|
return a == 1u32 && f.a == 1u32
|
|
&& b.a == 1u32 && y;
|
|
} |