Ver código fonte

shut up about errors in display mode

Simon Krajewski 9 anos atrás
pai
commit
012ea7d1a4
1 arquivos alterados com 1 adições e 1 exclusões
  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