소스 검색

[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',_) ->