Taddeus Kroes пре 12 година
родитељ
комит
a1fb541ec0
1 измењених фајлова са 5 додато и 4 уклоњено
  1. 5 4
      phases/typecheck.ml

+ 5 - 4
phases/typecheck.ml

@@ -44,10 +44,11 @@ let check_type ?(msg="") expected node =
   let got = typeof node in
   if (spec got) <> (spec expected) then begin
     let msg = match msg with
-      | "" -> sprintf "type mismatch: expected type %s, got %s"
-              (type2str_error expected) (type2str_error got)
-      | _ -> msg
-    in raise (NodeError (node, msg))
+    | "" -> sprintf "type mismatch: expected type %s, got %s"
+            (type2str_error expected) (type2str_error got)
+    | _ -> msg
+    in
+    raise (NodeError (node, msg))
   end
 
 let op_types = function