cli: restrict source scope names to lexical task operands

This commit is contained in:
dev committed 2026-10-07 19:50:49 +03:00
1 parent 364eb57bbc
commit 9001e56325
32 files changed
+307 -6

No files matched your search

+1
View File
@@ -221,6 +221,7 @@ scope s { // every task spawned in s must
```
- **Spawning:**
- a scope name is only the first operand of `task.spawn`; no aliases, `move` or ordinary value use (`E7006`);
- effect `task.spawn`;
- a value moved into a task must be `Send`, and data shared by `ref` must be `Share` (`E4001`, `E4002`);
- two live tasks may not hold overlapping `mut` loans (`E4101`);