test-suite/bugs/bug_13209.v
raw| 1 | Class A (n : nat) := {}. |
| 2 | Definition three := 3. |
| 3 | #[export] Instance A_three : A three := {}. |
| 4 | Definition three' := if true then three else 1. |
| 5 | (* 1 *) Goal A (if true then three else 1). apply _. Qed. |
| 6 | #[export] Hint Opaque three : typeclass_instances. |
| 7 | (* 2 *) Goal A (if true then three else 1). apply _. Qed. |
| 8 | (* 3 *) Goal A (three'). apply _. Qed. |