Skip to content
Snippets Groups Projects
Commit 88d1650a authored by Ralf Jung's avatar Ralf Jung
Browse files

add a test documenting recently changed behavior

parent 80b9ede6
No related branches found
No related tags found
No related merge requests found
......@@ -1485,6 +1485,17 @@ Proof. auto. Qed.
Lemma test_auto_wand_iff P : P ∗-∗ P.
Proof. auto. Qed.
Lemma test_iIntros_auto_name_used_later (Φ: nat PROP) :
x y, Φ (x+y).
Proof.
(* This test documents a difference between [intros ...] and [iIntros (...)]:
the latter will pick [x] as the name for the [?] here (matching the name in the goal)
and then fail later when another [x] is attempted to be introduced. [intros] will
somehow realize that [x] is coming later, and pick a different name for the [?]. *)
Fail iIntros (? x).
Abort.
End tests.
Section parsing_tests.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment