tests: extend audited rejection twins through tasks and locks
This commit is contained in:
1 parent
e4aacef48c
commit
272aebfd32
16 files changed
+157
-13
No files matched your search
@@ -3,6 +3,7 @@
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
module demo.access_lent
|
||||
// AIR twin: phase3/reject/tasks_access_lent.air
|
||||
|
||||
fn bump(s: slice_mut<u64>) -> void
|
||||
effects []
|
||||
@@ -20,7 +21,7 @@ effects [task.spawn]
|
||||
let (l, r) = s.split_at(2);
|
||||
scope sc {
|
||||
let a = task.spawn(sc, bump, l);
|
||||
seen = l[0];
|
||||
seen = l[0]; // diagnostic here: l[0]
|
||||
task.join(move a);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user