| 1 |
|
| 2 |
Class C (n:nat) := c{}. |
| 3 |
|
| 4 |
#[export] Instance c0 : C 0 := {}. |
| 5 |
|
| 6 |
Definition x := 0. |
| 7 |
|
| 8 |
Opaque x. |
| 9 |
|
| 10 |
Type _ : C x. |
| 11 |
(* this is maybe wrong behaviour, if it changes just update the test *) |
| 12 |
|
| 13 |
#[export] Hint Opaque x : typeclass_instances. |
| 14 |
Transparent x. |
| 15 |
|
| 16 |
Fail Type _ : C x. |