diff options
| author | Emilio Jesus Gallego Arias | 2018-11-23 19:50:57 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2018-11-23 19:50:57 +0100 |
| commit | f6ec69013b20f70f0004c1b493daa1d9eab12373 (patch) | |
| tree | cdb1ed3afed8b350bef455ea0bedc361ab7bb624 /test-suite | |
| parent | a0fdb3d1133e4fe2e1033d00bd356c5ee94ad75a (diff) | |
| parent | 688859bb05c575d684e79822bd828d6d97be67d8 (diff) | |
Merge PR #8890: Looking for notation both before or after removal of top coercion
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/output/Notations4.out | 4 | ||||
| -rw-r--r-- | test-suite/output/Notations4.v | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test-suite/output/Notations4.out b/test-suite/output/Notations4.out index 46784d1897..d25ad5dca8 100644 --- a/test-suite/output/Notations4.out +++ b/test-suite/output/Notations4.out @@ -17,3 +17,7 @@ end : Expr -> Expr [(1 + 1)] : Expr +Let "x" e1 e2 + : expr +Let "x" e1 e2 + : expr diff --git a/test-suite/output/Notations4.v b/test-suite/output/Notations4.v index 6bdbf1bed5..7800e91ee5 100644 --- a/test-suite/output/Notations4.v +++ b/test-suite/output/Notations4.v @@ -70,3 +70,27 @@ Notation "( x )" := x (in custom expr at level 0, x at level 2). Check [1 + 1]. End C. + +(* An example of interaction between coercion and notations from + Robbert Krebbers. *) + +Require Import String. + +Module D. + +Inductive expr := + | Var : string -> expr + | Lam : string -> expr -> expr + | App : expr -> expr -> expr. + +Notation Let x e1 e2 := (App (Lam x e2) e1). + +Parameter e1 e2 : expr. + +Check (Let "x" e1 e2). + +Coercion App : expr >-> Funclass. + +Check (Let "x" e1 e2). + +End D. |
