diff options
| author | Maxime Dénès | 2019-06-18 11:12:38 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2019-06-18 11:12:38 +0200 |
| commit | b467269eca41e9a659b591bfe79425a686593853 (patch) | |
| tree | 384b65d0eda8524c1d12b646202067750a0c3c0b /test-suite | |
| parent | 67c7c565361055bf57a75646b940e124e068ef24 (diff) | |
| parent | 60483325f1e56e379b9db8e8e543ecf344c11d9b (diff) | |
Merge PR #10199: Fix computation of implicit arguments when names collide in local fix/cofix (#10197)
Reviewed-by: maximedenes
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_10197.v | 16 | ||||
| -rw-r--r-- | test-suite/bugs/closed/bug_3810.v | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_10197.v b/test-suite/bugs/closed/bug_10197.v new file mode 100644 index 0000000000..920c5f5cb7 --- /dev/null +++ b/test-suite/bugs/closed/bug_10197.v @@ -0,0 +1,16 @@ +(* Some check about implicit arguments in fix *) + +Check fix f {f:nat} := match f with 0 => true | _ => false end. + +CoInductive stream := { this : nat ; next : option stream }. + +Check cofix f {f:nat} := {| this := f ; next := None |}. + +(* The following was ok from 8.4, just checking that the order is not + mixed up accidentally *) + +Check fix f (x : nat) (x : forall {a:nat}, a = 0 -> nat) := + match x eq_refl with 0 => true | _ => false end. + +Check fix f (x : forall {a:nat}, a = 0 -> bool) (x : nat) := + match x with 0 => true | _ => false end. diff --git a/test-suite/bugs/closed/bug_3810.v b/test-suite/bugs/closed/bug_3810.v new file mode 100644 index 0000000000..0b2bef8a9b --- /dev/null +++ b/test-suite/bugs/closed/bug_3810.v @@ -0,0 +1,6 @@ +Class Foo. + +Fixpoint test (H : Foo) (n : nat) {A : Type} {struct n} : A. +Admitted. + +Check fun (x:Foo) => test x 0. |
