Check the simplified type used in check-expr in trans.
This commit is contained in:
parent
ae25e66a7f
commit
4bec9538cc
@ -2066,7 +2066,7 @@ let trans_visitor
|
||||
List.iter patch fwd_jmps
|
||||
|
||||
and trans_check_expr (id:node_id) (e:Ast.expr) : unit =
|
||||
match expr_type cx e with
|
||||
match simplified_ty (expr_type cx e) with
|
||||
Ast.TY_bool ->
|
||||
let fwd_jmps = trans_cond false e in
|
||||
trans_cond_fail (Fmt.fmt_to_str Ast.fmt_expr e) fwd_jmps
|
||||
|
Loading…
Reference in New Issue
Block a user