mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 11:45:00 +03:00
32 lines
601 B
Plaintext
32 lines
601 B
Plaintext
// namespace: Compile
|
|
// expectation: Pass
|
|
// input_file: input/dummy.in
|
|
// cwd: imports
|
|
|
|
import test-import.( // local import
|
|
Point,
|
|
foo,
|
|
);
|
|
|
|
import bar.( // imports directory import
|
|
Bar,
|
|
baz.(Baz, Bazzar),
|
|
bat.bat.Bat,
|
|
);
|
|
|
|
import car.Car; // imports directory import
|
|
|
|
function main(y: bool) -> bool {
|
|
const point = Point { x: 1u32, y: 1u32 };
|
|
const foo = foo();
|
|
|
|
const bar = Bar { r: 1u32 };
|
|
const baz = Baz { z: 1u32 };
|
|
const bazzar = Bazzar { a: 1u32 };
|
|
const bat = Bat { t: 1u32 };
|
|
|
|
const car = Car { c: 1u32 };
|
|
|
|
return (car.c == 1u32) == y;
|
|
}
|