Quellcode durchsuchen

monomorphs are named "Unknown".

Nicolas Cannasse vor 20 Jahren
Ursprung
Commit
84a515053f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      type.ml

+ 1 - 1
type.ml

@@ -126,7 +126,7 @@ let rec s_type ctx t =
 	match t with
 	| TMono r ->
 		(match !r with
-		| None -> Printf.sprintf "'%d" (try List.assq t (!ctx) with Not_found -> let n = List.length !ctx in ctx := (t,n) :: !ctx; n)
+		| None -> Printf.sprintf "Unknown<%d>" (try List.assq t (!ctx) with Not_found -> let n = List.length !ctx in ctx := (t,n) :: !ctx; n)
 		| Some t -> s_type ctx t)
 	| TEnum (e,tl) ->
 		Ast.s_type_path e.e_path ^ s_type_params ctx tl