leo/asg/tests/pass/import/many_import_star.leo

19 lines
486 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +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() {
let point = Point { x: 1u32, y: 1u32 };
let foo = foo();
2021-01-25 18:17:42 +03:00
let bar = Bar { r: 1u32 };
let bat = Bat { t: 1u32 };
let baz = Baz { z: 1u32 };
2021-01-25 18:17:42 +03:00
let car = Car { c: 1u32 };
2021-01-25 18:17:42 +03:00
console.assert(car.c == 1u32);
}