tests: audit task argument identities and source error boundaries
This commit is contained in:
1 parent
fd92604f36
commit
2742867ef7
18 files changed
+344
-20
No files matched your search
@@ -3,6 +3,7 @@
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
module demo.not_share
|
||||
// AIR twin: phase3/reject/tasks_not_share.air
|
||||
|
||||
fn look(r: ref<region>) -> u64
|
||||
effects []
|
||||
@@ -18,7 +19,7 @@ effects [mem.alloc, task.spawn]
|
||||
{
|
||||
ref arena = r;
|
||||
scope sc {
|
||||
let t = task.spawn(sc, look, arena);
|
||||
let t = task.spawn(sc, look, arena); // diagnostic here: task.spawn
|
||||
v = task.join(move t);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user