cli: restrict source scope names to lexical task operands
This commit is contained in:
1 parent
364eb57bbc
commit
9001e56325
32 files changed
+307
-6
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// expect: reject E7005
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §7
|
||||
module scope_cases.spawn_shadow
|
||||
|
||||
fn work() -> u64 effects [] { 42u64 }
|
||||
fn main() -> u64 effects [task.spawn, task.wait] {
|
||||
scope s { let s = 0u64; let t = task.spawn(s, work); let n = task.join(move t); }
|
||||
0u64
|
||||
}
|
||||
Reference in new issue
Block a user