- reference/air-features.md: normative feature registry (arrays, atomics, capabilities, channels, effects, islands, ownership, regions, sync, tasks; all reserved), dependency closures, reasons for E0006 - spec 07 §8.1/§8.5/§8.7: features are mandatory, validated before the body, full dependency closure declared, sorted canonically; every extension belongs to a feature; published feature semantics immutable - spec 05 §8: features vs effects vs capabilities - src/air/features.zig: registry, validation, sync test with the docs - parser validates features first; E0006 carries `reason` - `aji features` prints supported AIR format, language and features - conformance: unknown, reserved and duplicate feature tests - plan: feature publication tasks in phases 1-5
14 lines
292 B
LLVM
14 lines
292 B
LLVM
; The same feature is declared twice: reasons unsupported_feature (arrays is reserved) and duplicate_feature.
|
|
; expect: reject E0006 E0006
|
|
; phase: 0
|
|
; spec: docs/spec/07-air.md
|
|
module test.duplicate_feature
|
|
air 0
|
|
lang 0.1
|
|
features [arrays, arrays]
|
|
|
|
fn @f() -> void
|
|
effects []
|
|
entry:
|
|
ret
|