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.
15 lines
467 B
Rust
15 lines
467 B
Rust
// expect: run
|
|
// result: 42
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §14
|
|
// module: app.fields=source/modules/fields.aji.inc
|
|
module app.entry
|
|
import app.fields;
|
|
fn main() -> u64 effects [] {
|
|
var pair: app.fields.Pair = app.fields.Pair { left: 19, right: 22 };
|
|
app.fields.increment(mut pair);
|
|
let wrapper = app.fields.Wrap { pair: pair };
|
|
let value: app.fields.Pair = app.fields.unwrap(wrapper);
|
|
return app.fields.total(ref value);
|
|
}
|