| 1 |
Declare Custom Entry expr. |
| 2 |
|
| 3 |
Check fun expr => expr. |
| 4 |
Check fun constr => constr. |
| 5 |
Goal True. |
| 6 |
let x := open_constr:(1+1) in pose x. |
| 7 |
let x := constr:(1+1) in pose x. |
| 8 |
Abort. |
| 9 |
|
| 10 |
Module A. |
| 11 |
Notation "'constr' : ( e )" := e (in custom expr, e constr). |
| 12 |
Notation "'expr' : ( e )" := e (e custom expr). |
| 13 |
|
| 14 |
Check expr:( constr:( 1 )). |
| 15 |
|
| 16 |
Check fun expr => expr. |
| 17 |
Check fun constr => constr. |
| 18 |
Goal True. |
| 19 |
let x := open_constr:(1+1) in pose x. |
| 20 |
let x := constr:(1+1) in pose x. |
| 21 |
Abort. |
| 22 |
End A. |
| 23 |
|
| 24 |
Module B. |
| 25 |
Notation "'expr' : ( e )" := e (e custom expr). |
| 26 |
Notation "'constr' : ( e )" := e (in custom expr, e constr). |
| 27 |
|
| 28 |
Check expr:( constr:( 1 )). |
| 29 |
|
| 30 |
Check fun expr => expr. |
| 31 |
Check fun constr => constr. |
| 32 |
Goal True. |
| 33 |
let x := open_constr:(1+1) in pose x. |
| 34 |
let x := constr:(1+1) in pose x. |
| 35 |
Abort. |
| 36 |
End B. |