cli: map block diagnostics to their source constructs

This commit is contained in:
dev committed 2026-10-07 21:45:57 +03:00
1 parent 1495650587
commit 1a80c42289
30 files changed
+555 -27

No files matched your search

@@ -0,0 +1,12 @@
// expect: reject E3002
// phase: 6
// spec: docs/spec/03-memory-model.md
module test.source_lock_join
fn main(heap: cap<mem.alloc>) -> void effects [mem.alloc, task.wait] {
let owner = own.new(1u64, heap) or trap;
let mutex_owner = mutex.make(1u64);
lock ref mutex_owner as data { // diagnostic here
own.free(move owner);
} cancelled {}
trap;
}