Skip to content

Commit

Permalink
replace locals in guards
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed May 31, 2013
1 parent e6c6c6a commit fdd4226
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codegen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,7 @@ module PatternMatchConversion = struct
to_typed_ast cctx (cctx.dt_lookup.(i))
| Expr e -> replace_locals cctx e
| Guard (e,dt1,dt2) ->
let e = replace_locals cctx e in
begin match dt2 with
| None -> mk (TIf(e,to_typed_ast cctx dt1,None)) t_dynamic e.epos
| Some dt ->
Expand Down

0 comments on commit fdd4226

Please sign in to comment.