mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 08:01:42 +03:00
25 lines
442 B
Plaintext
25 lines
442 B
Plaintext
import test-import.( // local import
|
|
Point,
|
|
foo,
|
|
);
|
|
|
|
import bar.( // imports directory import
|
|
Bar,
|
|
baz.Baz,
|
|
bat.bat.Bat,
|
|
);
|
|
|
|
import car.Car; // imports directory import
|
|
|
|
function main() {
|
|
const point = Point { x: 1u32, y: 1u32 };
|
|
const foo = foo();
|
|
|
|
const bar = Bar { r: 1u32 };
|
|
const baz = Baz { z: 1u32 };
|
|
const bat = Bat { t: 1u32 };
|
|
|
|
const car = Car { c: 1u32 };
|
|
|
|
assert_eq!(car.c, 1u32);
|
|
} |