test-suite/output/TermSyntax.v
raw| 1 | (* Check cast setting scopes *) |
| 2 | Check nat * nat : Type. |
| 3 | Check 0 * 0 : nat. |
| 4 | Require Import BinNums IntDef. |
| 5 | Infix "*" := Z.mul : Z_scope. |
| 6 | Check Z0 * Z0 : Z. |
| 7 | |
| 8 | Declare Scope b_scope. |
| 9 | Definition b := {x:bool|x=true}. |
| 10 | Notation "{ x ; y }" := (exist _ x y) : b_scope. |
| 11 | Fail Check fun '({x;y}:b) => x. |
| 12 | Bind Scope b_scope with b. |
| 13 | Check fun '({x;y}:b) => x. |