Explorar o código

[typer] don't error so hard on postfix !

Simon Krajewski %!s(int64=3) %!d(string=hai) anos
pai
achega
a8f2911068
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/typing/operators.ml

+ 1 - 1
src/typing/operators.ml

@@ -788,7 +788,7 @@ let type_unop ctx op flag e with_type p =
 		in
 		let t = match op with
 			| Not ->
-				if flag = Postfix then typing_error "Postfix ! is not supported" p;
+				if flag = Postfix then Common.display_error ctx.com "Postfix ! is not supported" p;
 				unify ctx e.etype ctx.t.tbool e.epos;
 				ctx.t.tbool
 			| NegBits ->