summaryrefslogtreecommitdiff
path: root/tests/fstar/hashmap/Primitives.fst
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fstar/hashmap/Primitives.fst')
-rw-r--r--tests/fstar/hashmap/Primitives.fst4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/fstar/hashmap/Primitives.fst b/tests/fstar/hashmap/Primitives.fst
index bf0f9078..98a696b6 100644
--- a/tests/fstar/hashmap/Primitives.fst
+++ b/tests/fstar/hashmap/Primitives.fst
@@ -35,7 +35,9 @@ unfold let return (#a : Type0) (x : a) : result a = Return x
// let* x = y in
// ...
// ```
-unfold let (let*) (#a #b : Type0) (m: result a) (f: a -> result b) : result b =
+unfold let (let*) (#a #b : Type0) (m: result a)
+ (f: (x:a) -> Pure (result b) (requires (m == Return x)) (ensures fun _ -> True)) :
+ result b =
match m with
| Return x -> f x
| Fail e -> Fail e