| 1 |
(** Test file for #18983 *) |
| 2 |
|
| 3 |
(** We test that [Search] allows the [is:Fixpoint] and [is:CoFixpoint] search |
| 4 |
items while not changing [is:Definition]. *) |
| 5 |
Module Foo. |
| 6 |
Definition foo := 42. |
| 7 |
|
| 8 |
Fixpoint bar (n : nat) := |
| 9 |
match n with |
| 10 |
| 0 => 0 |
| 11 |
| S n => bar n |
| 12 |
end. |
| 13 |
|
| 14 |
(* Example shamelessly taken from the reference manual. *) |
| 15 |
CoInductive Stream := Seq : nat -> Stream -> Stream. |
| 16 |
CoFixpoint from (n : nat) := Seq n (from (S n)). |
| 17 |
End Foo. |
| 18 |
|
| 19 |
Search is:Fixpoint inside Foo. |
| 20 |
Search is:CoFixpoint inside Foo. |
| 21 |
Search is:Definition inside Foo. |