diff options
| author | Maxime Dénès | 2020-08-20 16:32:33 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2020-08-20 16:32:33 +0200 |
| commit | 609152467f4d717713b7ea700f5155fc9f341cd7 (patch) | |
| tree | 97696e08209c7990344319e7b2d20a459140f5c4 /test-suite/bugs | |
| parent | b409b9837ce438042bb259d16a1b5156a2e0acb9 (diff) | |
| parent | 300157fc6176856f3f792d956925af366ef3329e (diff) | |
Merge PR #12756: Do not refresh the names of implicit arguments.
Reviewed-by: herbelin
Reviewed-by: maximedenes
Diffstat (limited to 'test-suite/bugs')
| -rw-r--r-- | test-suite/bugs/closed/bug_12001.v | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12001.v b/test-suite/bugs/closed/bug_12001.v new file mode 100644 index 0000000000..19533e49f1 --- /dev/null +++ b/test-suite/bugs/closed/bug_12001.v @@ -0,0 +1,24 @@ +(* Argument names don't get mangled *) +Set Mangle Names. +Lemma leibniz_equiv_iff {A : Type} (x y : A) : True. +Proof. tauto. Qed. +Check leibniz_equiv_iff (A := nat) 2 3 : True. +Unset Mangle Names. + +(* Coq doesn't make up names for arguments *) +Definition bar (a a : nat) : nat := 3. +Arguments bar _ _ : assert. +Fail Arguments bar a a0 : assert. + +(* This definition caused an anomaly in a version of this PR +without the change to prepare_implicits *) +Set Implicit Arguments. +Definition foo (_ : nat) (_ : @eq nat ltac:(assumption) 2) : True := I. +Fail Check foo (H := 2). + +Definition baz (a b : nat) := b. +Arguments baz a {b}. +Set Mangle Names. +Definition baz2 (a b : nat) := b. +Arguments baz2 a {b}. +Unset Mangle Names. |
