浏览代码

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

Simon Krajewski 3 年之前
父节点
当前提交
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
 		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 ->