test-suite/bugs/bug_19983.v
raw| 1 | Module P. |
| 2 | Private Inductive private_type := |
| 3 | |cons:private_type. |
| 4 | End P. |
| 5 | Import P. |
| 6 | |
| 7 | Inductive new_type: private_type-> Type := |
| 8 | |cons2: forall m:private_type, new_type m. |
| 9 | |
| 10 | Definition my_fun (x:private_type) (y:new_type x) := |
| 11 | match y with |
| 12 | |cons2 _ =>True |
| 13 | end. |
| 14 | |
| 15 | Fail Definition foo (x:P.private_type) := match x with P.cons => tt end. |