Files
aji/tests/conformance/modules/nominal_call.air
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

22 lines
528 B
LLVM

; expect: reject E1001
; phase: 0
; spec: docs/spec/15-source-language.md §14.3; docs/spec/07a-air-instructions.md
module app.entry
air 0
lang 0.1
features []
type @app_a_Pair = struct { value: u64 }
type @app_b_Pair = struct { value: u64 }
fn @app_a_total(%pair: @app_a_Pair) -> u64
effects []
entry:
%value = struct.get @app_a_Pair.value, %pair
ret %value
fn @main() -> u64
effects []
entry:
%value = const.u64 42
%pair = struct.make @app_b_Pair(%value)
%result = call @app_a_total(%pair)
ret %result