test-suite/output/bug_5222.v
raw| 1 | (* coq-prog-args: ("-async-proofs" "off") *) |
| 2 | |
| 3 | Definition T1 (X : Type) : Type := list X. |
| 4 | Coercion C1 (X: Type) (A : T1 X) : Prop := True. |
| 5 | (* Works fine. *) |
| 6 | |
| 7 | Goal True = (nil : T1 nat). |
| 8 | Proof. |
| 9 | Show. |
| 10 | trivial. |
| 11 | Qed. |
| 12 | |
| 13 | Definition T2 (X : Type) : Type := list X. |
| 14 | Section S. |
| 15 | Context (X : Type). |
| 16 | Coercion C2 (A : T2 X) : Prop := True. |
| 17 | End S. |
| 18 | |
| 19 | Goal True = (nil : T2 nat). (* The coercion works... *) |
| 20 | Proof. |
| 21 | Show. |
| 22 | trivial. |
| 23 | Qed. |