diff options
| author | Pierre-Marie Pédrot | 2016-09-14 10:27:38 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2016-09-14 11:10:25 +0200 |
| commit | 3e794be5f02ed438cdc5a351d09bdfb54c0be01a (patch) | |
| tree | 3bbed56609e021f5c560a10037bafdae62e0db14 /test-suite | |
| parent | 0e94cb62410354e5df4e65b34e7cbf8451b31d6e (diff) | |
| parent | 2aaa58c22e37b05e3637ac7161bb464da7db054a (diff) | |
Merge branch 'v8.5' into v8.6
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/5077.v | 8 | ||||
| -rw-r--r-- | test-suite/output/Notations2.out | 2 | ||||
| -rw-r--r-- | test-suite/output/Notations2.v | 5 | ||||
| -rw-r--r-- | test-suite/success/TestRefine.v | 2 |
4 files changed, 16 insertions, 1 deletions
diff --git a/test-suite/bugs/closed/5077.v b/test-suite/bugs/closed/5077.v new file mode 100644 index 0000000000..7e7f2c3737 --- /dev/null +++ b/test-suite/bugs/closed/5077.v @@ -0,0 +1,8 @@ +(* Testing robustness of typing for a fixpoint with evars in its type *) + +Inductive foo (n : nat) : Type := . +Definition foo_denote {n} (x : foo n) : Type := match x with end. + +Definition baz : forall n (x : foo n), foo_denote x. +refine (fix go n (x : foo n) : foo_denote x := _). +Abort. diff --git a/test-suite/output/Notations2.out b/test-suite/output/Notations2.out index 20101f48e5..5541ccf57b 100644 --- a/test-suite/output/Notations2.out +++ b/test-suite/output/Notations2.out @@ -58,3 +58,5 @@ exist (Q x) y conj : nat -> nat % j : nat -> nat +{1, 2} + : nat -> Prop diff --git a/test-suite/output/Notations2.v b/test-suite/output/Notations2.v index 3cf89818d9..1d8278c088 100644 --- a/test-suite/output/Notations2.v +++ b/test-suite/output/Notations2.v @@ -111,3 +111,8 @@ Check (exist (Q x) y conj). Notation "% i" := (fun i : nat => i) (at level 0, i ident). Check %i. Check %j. + +(* Check bug raised on coq-club on Sep 12, 2016 *) + +Notation "{ x , y , .. , v }" := (fun a => (or .. (or (a = x) (a = y)) .. (a = v))). +Check ({1, 2}). diff --git a/test-suite/success/TestRefine.v b/test-suite/success/TestRefine.v index c8a8b862fa..023cb5f59d 100644 --- a/test-suite/success/TestRefine.v +++ b/test-suite/success/TestRefine.v @@ -53,7 +53,7 @@ Abort. Lemma essai2 : forall x : nat, x = x. -Fail refine (fix f (x : nat) : x = x := _). +refine (fix f (x : nat) : x = x := _). Restart. |
