| 1 |
Fail Check fun b : bool |
| 2 |
=> match b, b with |
| 3 |
| true as a, true as a | true as a, _ => true |
| 4 |
| _, _ => false |
| 5 |
end. |
| 6 |
|
| 7 |
Fail Check fun b : bool |
| 8 |
=> match b, b with |
| 9 |
| true as a, true as a => true |
| 10 |
| _, _ => false |
| 11 |
end. |
| 12 |
|
| 13 |
Definition f b := |
| 14 |
match b, b with |
| 15 |
| true as a as a, true as b => true |
| 16 |
| _, _ => false |
| 17 |
end. |
| 18 |
|
| 19 |
Module Bug18002. |
| 20 |
|
| 21 |
(* Non linearity to be checked first also at the level of inner |
| 22 |
disjunctive patterns *) |
| 23 |
|
| 24 |
Inductive U := p :nat->nat->U. |
| 25 |
|
| 26 |
Fail Check match p 1 2 with |
| 27 |
| (p n 0 | p n (S n)) => 0 |
| 28 |
| _ => 1 |
| 29 |
end. |
| 30 |
|
| 31 |
End Bug18002. |