cli: validate exclusive source places before AIR

This commit is contained in:
dev committed 2026-10-08 12:37:22 +03:00
1 parent dcd5f1f702
commit 41f3afbf05
54 files changed
+541 -2

No files matched your search

@@ -0,0 +1,9 @@
// expect: run
// result: 42
// grant: heap=mem.alloc:128
// phase: 6
// spec: docs/spec/15-source-language.md §5/§10
module test.store_modes
struct Pair { a: u64 }
struct Box { pair: Pair, data: [u64; 2] }
fn main(heap: cap<mem.alloc>) -> u64 effects [mem.alloc] { let x = own.new(0u64, heap) or trap; { mut p = x; *p = 42u64; } return own.take(move x); }