Explorar o código

fix has_mono logic (closes #2238)

Simon Krajewski %!s(int64=12) %!d(string=hai) anos
pai
achega
92f74ac219
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      type.ml

+ 1 - 1
type.ml

@@ -668,7 +668,7 @@ let rec has_mono t = match t with
 	| TFun(args,r) ->
 		has_mono r || List.exists (fun (_,_,t) -> has_mono t) args
 	| TAnon a ->
-		PMap.fold (fun cf b -> has_mono cf.cf_type && b) a.a_fields true
+		PMap.fold (fun cf b -> has_mono cf.cf_type || b) a.a_fields false
 	| TLazy r ->
 		has_mono (!r())