forked from coq/coq
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes coq#18223: wrong printing coercions order for transitive closur…
…e on the right.
- Loading branch information
Showing
3 changed files
with
27 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,4 @@ | ||
fun a b : A => < {| b a |} > | ||
: A -> A -> A | ||
fun a b : A => < {| b a |} > | ||
: A -> A -> A |
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,22 @@ | ||
Declare Custom Entry foo. | ||
Declare Custom Entry bar. | ||
|
||
Parameter (A : Type). | ||
Parameter (Q : A -> A -> A). | ||
Parameter (P : A -> A). | ||
|
||
Notation "< x >" := (P x) (x custom foo). | ||
Notation "x y" := (Q x y) (in custom bar at level 1, right associativity). | ||
Notation "x" := x (in custom bar at level 0, x global). | ||
|
||
Module Order1. | ||
Notation "| x |" := (x) (x custom bar). | ||
Notation "{ x }" := (x) (in custom foo, x constr). | ||
Check (fun a b => < {Q b a} >). | ||
End Order1. | ||
|
||
Module Order2. | ||
Notation "{ x }" := (x) (in custom foo, x constr). | ||
Notation "| x |" := (x) (x custom bar). | ||
Check (fun a b => < {Q b a} >). | ||
End Order2. |