| 809 |
t |
t |
| 810 |
|
|
| 811 |
and type_check_pair ?(kind=`Normal) loc env e1 e2 constr precise = |
and type_check_pair ?(kind=`Normal) loc env e1 e2 constr precise = |
| 812 |
let rects = Types.Product.get ~kind constr in |
let rects = Types.Product.normal ~kind constr in |
| 813 |
if Types.Product.is_empty rects then |
if Types.Product.is_empty rects then |
| 814 |
(match kind with |
(match kind with |
| 815 |
| `Normal -> raise_loc loc (ShouldHave (constr,"but it is a pair.")) |
| `Normal -> raise_loc loc (ShouldHave (constr,"but it is a pair.")) |