aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/output/Notations.out9
-rw-r--r--test-suite/output/Notations.v4
2 files changed, 11 insertions, 2 deletions
diff --git a/test-suite/output/Notations.out b/test-suite/output/Notations.out
index 5a32cff963..28621ccd81 100644
--- a/test-suite/output/Notations.out
+++ b/test-suite/output/Notations.out
@@ -116,9 +116,14 @@ fun x : option Z => match x with
end
: option Z -> Z
fun x : option Z => match x with
- | SOME3 _ x0 => x0
- | NONE3 _ => 0
+ | SOME2 x0 => x0
+ | NONE2 => 0
end
: option Z -> Z
+fun x : list ?99 => match x with
+ | NIL => NONE2
+ | (_ :') t => SOME2 t
+ end
+ : list ?99 -> option (list ?99)
s
: s
diff --git a/test-suite/output/Notations.v b/test-suite/output/Notations.v
index e560aecd8d..d5763022e8 100644
--- a/test-suite/output/Notations.v
+++ b/test-suite/output/Notations.v
@@ -246,6 +246,10 @@ Notation NONE3 := @None.
Notation SOME3 := @Some.
Check (fun x => match x with SOME3 _ x => x | NONE3 _ => 0 end).
+Notation "a :'" := (cons a) (at level 12).
+
+Check (fun x => match x with | nil => NONE | h :' t => SOME3 _ t end).
+
(* Check correct matching of "Type" in notations. Of course the
notation denotes a term that will be reinterpreted with a different
universe than the actual one; but it would be the same anyway