Просмотр исходного кода

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

Simon Krajewski 3 лет назад
Родитель
Сommit
a8f2911068
1 измененных файлов с 1 добавлено и 1 удалено
  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
 		in
 		let t = match op with
 		let t = match op with
 			| Not ->
 			| 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;
 				unify ctx e.etype ctx.t.tbool e.epos;
 				ctx.t.tbool
 				ctx.t.tbool
 			| NegBits ->
 			| NegBits ->