diff options
| author | Pierre-Marie Pédrot | 2019-01-30 11:23:42 +0100 |
|---|---|---|
| committer | GitHub | 2019-01-30 11:23:42 +0100 |
| commit | e35f5bb879b4697ff17daad1a2f0d76b71b8e2ca (patch) | |
| tree | ff52de399b920d431391b2e1ee2dcb97c3ba450c /tests | |
| parent | 8ccd3f911e6cd6fd0b8aea9604085420cd13070a (diff) | |
| parent | 49155a0817234299c45d04a14bd834f44fbc391f (diff) | |
Merge pull request coq/ltac2#100 from JasonGross/fix-lazy-match-goal
Make lazy_match! goal actually lazy
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/matching.v | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/matching.v b/tests/matching.v index 6bc5706da7..4338cbd32f 100644 --- a/tests/matching.v +++ b/tests/matching.v @@ -50,3 +50,22 @@ match! reverse goal with check_id h' @i end. Abort. + +(* Check #79 *) +Goal 2 = 3. + Control.plus + (fun () + => lazy_match! goal with + | [ |- 2 = 3 ] => Control.zero (Tactic_failure None) + | [ |- 2 = _ ] => Control.zero (Tactic_failure (Some (Message.of_string "should not be printed"))) + end) + (fun e + => match e with + | Tactic_failure c + => match c with + | None => () + | _ => Control.zero e + end + | e => Control.zero e + end). +Abort. |
