test-suite/bugs/bug_19160_1.v
raw| 1 | Inductive trip := Z | L (_:trip) (_:trip) | R (_:trip). |
| 2 | |
| 3 | Type fun x:bool => |
| 4 | fix foo (n:trip) : x = x := eq_refl |
| 5 | with bar (n:trip) : x = x := |
| 6 | match n with |
| 7 | | Z => eq_refl |
| 8 | | L k _ => bar k |
| 9 | | R k => foo k |
| 10 | end |
| 11 | for foo. |
| 12 | (* Error: In pattern-matching on term "n" the branch for constructor "R" has type |
| 13 | "fun _ : trip => _UNBOUND_REL_6 = _UNBOUND_REL_6" which should be "fun _ : trip => x = x". |
| 14 | *) |