Skip to content

Commit 5e89084

Browse files
committed
make diff clearer
1 parent 10665b8 commit 5e89084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/ml/printtyp.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ let non_shadowed_pervasive_or_stdlib = function
6464

6565
let rec tree_of_path = function
6666
| Pident id -> Oide_ident (ident_name id)
67+
| Pdot (_, s, _pos) as path when non_shadowed_pervasive_or_stdlib path ->
68+
Oide_ident s
6769
| Pdot (p, s, _pos) when String.starts_with (Path.name p) ~prefix:"Stdlib_" ->
6870
let path_name = Path.name p in
6971
let ident_without_stdlib_prefix =
7072
String.sub path_name 7 (String.length path_name - 7)
7173
in
7274
Oide_dot (Oide_ident ident_without_stdlib_prefix, s)
73-
| Pdot (_, s, _pos) as path when non_shadowed_pervasive_or_stdlib path ->
74-
Oide_ident s
7575
| Pdot (p, s, _pos) -> Oide_dot (tree_of_path p, s)
7676
| Papply (p1, p2) -> Oide_apply (tree_of_path p1, tree_of_path p2)
7777

0 commit comments

Comments
 (0)