Files
aji/tests/conformance/source/modules/record.aji
T
dev c96199e7ec cli: add explicit package source modules
Link manifest-selected source graphs with module-local names, qualified
structs/enums/functions and task workers through ordinary AIR verification.
Keep source inputs bounded, reject source symlinks and preserve explicit
grants, diagnostics and deterministic canonical lowering.

Integrate spec 12/15, RFC 0021, source reference budgets, roadmap, examples
and CI coverage. Validate 579 conformance tests, unit tests, 76 source
constructs, hosted smoke, 36 package CLI checks and task schedule stress.
2026-10-06 18:51:54 +03:00

23 lines
747 B
Rust

// expect: run
// result: 42
// phase: 6
// spec: docs/spec/15-source-language.md §14
// equivalent: modules/record.air
// module: app.work=source/modules/work.aji.inc
// module: app.model=source/modules/model.aji.inc
module app.entry
import app.model;
import app.work;
fn helper() -> u64 effects [] { return 100; }
fn main() -> u64 effects [] {
let app = 7u8;
assert(app == 7);
assert(helper() == 100);
assert(app.model.local() == 10);
assert(app.model.main() == 9);
let p: app.model.Pair = app.work.run();
let w = app.model.Wrap { pair: p };
let state = app.model.State::Done(w.pair);
match state { app.model.State::Done(pair) => { return app.model.total(pair); } app.model.State::Empty => { return 0; } }
}