leo/tests/compiler/import_old/many_import_star.leo

25 lines
602 B
Plaintext
Raw Normal View History

// namespace: Compile
// expectation: Pass
// input_file: input/dummy.in
// cwd: imports
2021-05-05 19:31:25 +03:00
2020-08-15 11:58:33 +03:00
import test-import.*; // local import
import bar.*; // imports directory import
import bar.baz.*; // imports directory import
import bar.bat.bat.*; // imports directory import
import 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 bat = Bat { t: 1u32 };
const baz = Baz { z: 1u32 };
const car = Car { c: 1u32 };
2021-07-01 23:40:29 +03:00
return (car.c == 1u32) == y;
2021-05-05 19:31:25 +03:00
}