forked from coq/coq
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Namegen.nex_ident_away_in_goal: don't avoid names of globrefs
Fix coq#3523
- Loading branch information
1 parent
e51a010
commit befdfe8
Showing
3 changed files
with
27 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- **Changed:** | ||
Name generation does not avoid names of references from the current file | ||
(`#15071 <https://github.com/coq/coq/pull/15071>`_, | ||
fixes `#3523 <https://github.com/coq/coq/issues/3523>`_, | ||
by Gaëtan Gilbert). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Module Foo. | ||
Record foor := C { foof : Type }. | ||
End Foo. | ||
|
||
Module bar. | ||
Import Foo. | ||
|
||
Goal forall x : foor, x = x. | ||
Proof. | ||
intro x. | ||
destruct x. | ||
revert foof. | ||
exact (fun f => eq_refl (C f)). | ||
Qed. | ||
End bar. |