diag: preserve factual source atomic-access diagnostics

This commit is contained in:
dev committed 2026-10-09 00:04:12 +03:00
1 parent ee09a7a290
commit edfef82cc6
18 files changed
+346 -9

No files matched your search

@@ -0,0 +1,12 @@
// expect: reject E4202
// phase: 6
// spec: docs/spec/15-source-language.md §12; docs/spec/04-concurrency-and-atomics.md §28
module test.atomic_access_parameter
fn read(cell: ref<atomic<u64>>) -> u64 effects [] {
return *cell; // diagnostic here: *cell
}
fn main() -> u64 effects [] {
return 0;
}