mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Fix: Expr.map was missing types in logs
This commit is contained in:
parent
b9156bb60e
commit
dbfd05155b
@ -293,6 +293,10 @@ let map
|
||||
| ELit l -> elit l m
|
||||
| EApp { f = e1; args; tys } ->
|
||||
eapp ~f:(f e1) ~args:(List.map f args) ~tys:(List.map typ tys) m
|
||||
| EAppOp { op = Op.Log (VarDef vd, infos), pos; tys; args } ->
|
||||
let log_typ = Mark.remove (typ (Mark.add Pos.no_pos vd.log_typ)) in
|
||||
let op = fop (Op.Log (VarDef { vd with log_typ }, infos), pos) in
|
||||
eappop ~op ~tys:(List.map typ tys) ~args:(List.map f args) m
|
||||
| EAppOp { op; tys; args } ->
|
||||
eappop ~op:(fop op) ~tys:(List.map typ tys) ~args:(List.map f args) m
|
||||
| EArray args -> earray (List.map f args) m
|
||||
|
Loading…
Reference in New Issue
Block a user