瀏覽代碼

fix has_mono logic (closes #2238)

Simon Krajewski 12 年之前
父節點
當前提交
92f74ac219
共有 1 個文件被更改,包括 1 次插入1 次删除
  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())