Procházet zdrojové kódy

shut up about errors in display mode

Simon Krajewski před 9 roky
rodič
revize
012ea7d1a4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/typing/typecore.ml

+ 1 - 1
src/typing/typecore.ml

@@ -257,7 +257,7 @@ let make_static_call ctx c cf map args t p =
 	make_call ctx ef args (map t) p
 
 let raise_or_display ctx l p =
-	if ctx.untyped then ()
+	if ctx.untyped || ctx.com.display <> DMNone then ()
 	else if ctx.in_call_args then raise (WithTypeError(l,p))
 	else display_error ctx (error_msg (Unify l)) p