cli: add explicit static function parameters

Bind typed source functions with exact effect contracts during deterministic
specialization; retain nominal operation identity and ordinary AIR verification.

Add spec/RFC/grammar, checked Quick Reference examples, source/AIR conformance,
package/hosted CLI tests, scheduler/GC coverage and documentation budgets.
This commit is contained in:
dev committed 2026-10-07 10:23:03 +03:00
1 parent 57603860df
commit f02f4bd55b
72 files changed
+969 -25

No files matched your search

@@ -0,0 +1,11 @@
// expect: run
// result: 42
// phase: 6
// spec: docs/spec/15-source-language.md §18
// schedules: 12
module test.static_functions
fn identity(value: u64) -> u64 effects [] { return value; }
fn run<F: fn(u64) -> u64 effects []>() -> u64 effects [task.spawn, task.wait] {
scope s { let t = task.spawn(s, F, 42u64); return task.join(move t); }
}
fn main() -> u64 effects [task.spawn, task.wait] { return run::<fn identity>(); }