Skip to content

Commit 2eef52c

Browse files
authored
Apply suggestions from code review
1 parent 3fc819c commit 2eef52c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/compiler/type_checker.ml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ let error_ambiguous ~loc c alltys =
222222

223223
let error_unknown_symbol ~loc c =
224224
let pretty_ty = pretty_ty true in
225-
let msg = Format.asprintf "@[<v>%a is unknown." F.pp c in
226-
(* (pplist (fun fmt (_,x)-> Format.fprintf fmt "%a" pretty_ty x) ", ") alltys in *)
225+
let msg = Format.asprintf "%a is unknown." F.pp c in
226+
227227
error ~loc msg
228228

229229

@@ -330,8 +330,6 @@ let rec classify_arrow = function
330330
let global_type (unknown_global : env_undeclared ref) (ety : TypeAssignment.t MutableOnce.t TypeAssignment.t_) env ~loc c : ret_id TypeAssignment.overloaded =
331331
try fresh_skema_of_overloaded_symbol c env
332332
with Not_found ->
333-
(* Printf.eprintf "FOUND OMAP %s %s\n%!" (F.show c) ; *)
334-
335333
try
336334
let ty,id = F.Map.find c !unknown_global in
337335
Single (id,TypeAssignment.unval ty)
@@ -344,8 +342,6 @@ let global_type (unknown_global : env_undeclared ref) (ety : TypeAssignment.t Mu
344342
Single (id,TypeAssignment.unval ty)
345343
| Simple { tgt = (App(f,_,_)) } -> error_unknown_symbol ~loc c (Some f)
346344
| _ -> error_unknown_symbol ~loc c None
347-
348-
349345
let unknown_type_assignment s = TypeAssignment.Val (mk_uvar s)
350346

351347
let rec extend l1 l2 =

0 commit comments

Comments
 (0)