소스 검색

[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 ->