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.next_ident_away_in_goal: don't avoid names of nonlocal refs
Fix coq#3523
- Loading branch information
1 parent
7c2bf97
commit a23b412
Showing
4 changed files
with
52 additions
and
35 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,4 @@ | ||
- **Changed:** Name generation does not avoid names of references | ||
except for those from the current module and its ancestors (`#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. |
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