浏览代码

[display] don't unify against expected type when it's a monomorph

closes #7177
Simon Krajewski 7 年之前
父节点
当前提交
109e9b19bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/context/display/displayEmitter.ml

+ 1 - 1
src/context/display/displayEmitter.ml

@@ -23,7 +23,7 @@ let sort_fields l with_type p =
 		List.map fst (List.sort (fun (_,i1) (_,i2) -> compare i1 i2) l)
 	in
 	let l = match with_type with
-		| WithType t ->
+		| WithType t when (match follow t with TMono _ -> false | _ -> true) ->
 			let rec comp t' = match t' with
 				| None -> 9
 				| Some (t',_) ->