Debian Codegraph @

test-suite/bugs/bug_5239.v

raw
1 Class Inhabited (A:Type) := {repr : A}.
2
3 (* Removing this instance gets rid of the bug *)
4 #[local] Instance Inhabited_option A : Inhabited (option A) := {repr := None}.
5
6 Lemma option_refl {A}: forall `{Inhabited A} (u : A), u = u.
7 Proof. reflexivity. Qed.
8
9 Succeed #[local] Hint Rewrite @option_refl : core.
10 Fail #[local] Hint Rewrite option_refl : core.