Skip to content

Commit fa802db

Browse files
authored
Fix mapping of intervals in Ast_mapper (ocaml#10543) (#1758)
1 parent 10902c1 commit fa802db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vendor/ocaml-4.13/ast_mapper.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ module P = struct
486486
| Ppat_var s -> var ~loc ~attrs (map_loc sub s)
487487
| Ppat_alias (p, s) -> alias ~loc ~attrs (sub.pat sub p) (map_loc sub s)
488488
| Ppat_constant c -> constant ~loc ~attrs (sub.constant sub c)
489-
| Ppat_interval (c1, c2) -> interval ~loc ~attrs c1 c2
489+
| Ppat_interval (c1, c2) ->
490+
interval ~loc ~attrs (sub.constant sub c1) (sub.constant sub c2)
490491
| Ppat_tuple pl -> tuple ~loc ~attrs (List.map (sub.pat sub) pl)
491492
| Ppat_construct (l, p) ->
492493
construct ~loc ~attrs (map_loc sub l)

0 commit comments

Comments
 (0)