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.
Fix Class_tactics.run_on_goals setting incorrect typeclass evars
Fix coq#18127
- Loading branch information
1 parent
4429d4b
commit 6d5365f
Showing
2 changed files
with
11 additions
and
1 deletion.
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
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,10 @@ | ||
Class Class1 (hom : Type) (c : hom) : Type := { | ||
var1 : hom -> Type; | ||
var2 : hom; | ||
}. | ||
|
||
Class Class2 {h c} (C : Class1 h c) (fmap : h -> h) := { | ||
var3 : var1 (fmap var2); | ||
}. | ||
|
||
Definition var3_cast : forall {h c C fm}, Class2 C fm -> var1 (fm var2) := @var3. |