瀏覽代碼

[optimizer] mention `match` in "cannot directly compare enums"

Jens Fischer 6 年之前
父節點
當前提交
c8e0b76f60
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/optimization/optimizerTexpr.ml

+ 1 - 1
src/optimization/optimizerTexpr.ml

@@ -209,7 +209,7 @@ let optimize_binop e op e1 e2 =
 		(match op with
 		| OpAssign -> e
 		| _ ->
-			error "You cannot directly compare enums with arguments. Use either 'switch' or 'Type.enumEq'" e.epos)
+			error "You cannot directly compare enums with arguments. Use either `switch`, `match` or `Type.enumEq`" e.epos)
 	| _ ->
 		e)