Skip to content

Commit 42ac167

Browse files
committed
err_case ppx in submodules
1 parent 887dc06 commit 42ac167

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ppx/ppx_deriving_err_case.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ let get_err_case_options ~loc l =
191191

192192
let transform =
193193
object
194-
inherit Ast_traverse.map
194+
inherit Ast_traverse.map as super
195195
method! structure_item it = match it.pstr_desc with
196196
| Pstr_extension (({txt="err_case"; _}, PStr [{pstr_desc=Pstr_value (_, l); pstr_loc=loc; _}]), _) ->
197197
let l, debug = List.fold_left (fun (acc, acc_debug) vb ->
@@ -217,7 +217,7 @@ let transform =
217217
let it = pstr_value ~loc Nonrecursive l in
218218
if debug then Format.printf "%a@." Pprintast.structure_item it;
219219
it
220-
| _ -> it
220+
| _ -> super#structure_item it
221221
end
222222

223223
let () =

0 commit comments

Comments
 (0)