Debian Codegraph @

test-suite/bugs/bug_10197.v

raw
1 (* Some check about implicit arguments in fix *)
2
3 Check fix f {f:nat} := match f with 0 => true | _ => false end.
4
5 CoInductive stream := { this : nat ; next : option stream }.
6
7 Check cofix f {f:nat} := {| this := f ; next := None |}.
8
9 (* The following was ok from 8.4, just checking that the order is not
10 mixed up accidentally *)
11
12 Check fix f (x : nat) (x : forall {a:nat}, a = 0 -> nat) :=
13 match x eq_refl with 0 => true | _ => false end.
14
15 Check fix f (x : forall {a:nat}, a = 0 -> bool) (x : nat) :=
16 match x with 0 => true | _ => false end.