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 8ba7928 commit 09eaef5Copy full SHA for 09eaef5
jscomp/ml/typecore.ml
@@ -805,7 +805,9 @@ end) = struct
805
Env.mark_type_used env (Path.last tpath) (Env.find_type tpath env);
806
match lid.txt with
807
Longident.Lident s_ -> begin
808
- let s = if List.exists (fun nd -> get_name nd = s_) descrs
+ let s =
809
+ if List.exists (fun nd -> get_name nd = s_) descrs
810
+ || not (List.exists (fun nd -> get_name nd = "anyOtherField") descrs)
811
then s_
812
else "anyOtherField" in
813
try
0 commit comments