Debian Codegraph @

test-suite/bugs/bug_10959.v

raw
1 Class Need := { }.
2
3 Hint Extern 0 Need => abstract constructor : typeclass_instances.
4
5 Definition satisfy (H : Need) : unit := tt.
6
7 (* Check that various declaration paths correctly register abstracted constants *)
8
9 Definition defdef (n : nat) : unit := satisfy _.
10
11 Fixpoint fixdef (n : nat) : unit :=
12 match n with
13 | 0 => tt
14 | S n => match satisfy _ with tt => fixdef n end
15 end.
16
17 (* These two are still broken: *)
18 (* Axiom axmdef : satisfy _ = tt. *)
19 (* Program Definition progdef := satisfy _. *)