2020-08-15 11:58:33 +03:00
|
|
|
import test-import.( // local import
|
2020-06-30 03:47:23 +03:00
|
|
|
Point,
|
|
|
|
foo,
|
|
|
|
);
|
|
|
|
|
|
|
|
import bar.( // imports directory import
|
|
|
|
Bar,
|
2021-02-05 19:36:21 +03:00
|
|
|
baz.(Baz, Bazzar),
|
2020-06-30 03:47:23 +03:00
|
|
|
bat.bat.Bat,
|
|
|
|
);
|
|
|
|
|
|
|
|
import car.Car; // imports directory import
|
|
|
|
|
2020-07-30 23:01:04 +03:00
|
|
|
function main() {
|
2021-02-16 22:19:20 +03:00
|
|
|
let point = Point { x: 1u32, y: 1u32 };
|
|
|
|
let foo = foo();
|
2020-06-30 03:47:23 +03:00
|
|
|
|
2021-02-16 22:19:20 +03:00
|
|
|
let bar = Bar { r: 1u32 };
|
|
|
|
let baz = Baz { z: 1u32 };
|
|
|
|
let bazzar = Bazzar { a: 1u32 };
|
|
|
|
let bat = Bat { t: 1u32 };
|
2020-06-30 03:47:23 +03:00
|
|
|
|
2021-02-16 22:19:20 +03:00
|
|
|
let car = Car { c: 1u32 };
|
2020-06-30 03:47:23 +03:00
|
|
|
|
2020-08-17 05:14:26 +03:00
|
|
|
console.assert(car.c == 1u32);
|
2020-06-30 03:47:23 +03:00
|
|
|
}
|