Browse Source

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

closes #7177
Simon Krajewski 7 years ago
parent
commit
109e9b19bf
1 changed files with 1 additions and 1 deletions
  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',_) ->