We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c035367 commit 98717b1Copy full SHA for 98717b1
jscomp/ml/printtyp.ml
@@ -51,10 +51,11 @@ let ident ppf id = pp_print_string ppf (ident_name id)
51
(* Print a path *)
52
53
let ident_pervasives = Ident.create_persistent "Pervasives"
54
+let ident_pervasives_u = Ident.create_persistent "PervasivesU"
55
let printing_env = ref Env.empty
56
let non_shadowed_pervasive = function
57
| Pdot(Pident id, s, _pos) as path ->
- Ident.same id ident_pervasives &&
58
+ (Ident.same id ident_pervasives || Ident.same id ident_pervasives_u) &&
59
(try Path.same path (Env.lookup_type (Lident s) !printing_env)
60
with Not_found -> true)
61
| _ -> false
0 commit comments