File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 3352fab59ba39194b2efd7e478aa1fbbfe0de8d1
2
+ refs/heads/master: c410d685294e73a944f3e7cfe403f415a0cff849
Original file line number Diff line number Diff line change @@ -2578,8 +2578,13 @@ let trans_visitor
2578
2578
in
2579
2579
match expr with
2580
2580
Ast. EXPR_binary (binop , a , b ) ->
2581
- assert (is_prim_type (simplified_ty (atom_type cx a)));
2582
- assert (is_prim_type (simplified_ty (atom_type cx b)));
2581
+ if not (is_prim_type (simplified_ty (atom_type cx a))) ||
2582
+ not (is_prim_type (simplified_ty (atom_type cx b))) then
2583
+ unimpl None " application of binary operator %a to operands of \
2584
+ type %s and %s"
2585
+ Ast. sprintf_binop binop
2586
+ (pretty_ty_str cx (Ast. sprintf_ty () ) (atom_type cx a))
2587
+ (pretty_ty_str cx (Ast. sprintf_ty () ) (atom_type cx b));
2583
2588
trans_binary binop (trans_atom a) (trans_atom b)
2584
2589
2585
2590
| Ast. EXPR_unary (unop , a ) ->
You can’t perform that action at this time.
0 commit comments