From 9174b90986c21eca34b96dc9574d76a37740dfdd Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Sat, 17 Dec 2022 19:07:11 +0300 Subject: [PATCH] Change the error message for invalid_const_id --- src/aeso_ast_infer_types.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aeso_ast_infer_types.erl b/src/aeso_ast_infer_types.erl index 8b2f0de..fcfd747 100644 --- a/src/aeso_ast_infer_types.erl +++ b/src/aeso_ast_infer_types.erl @@ -3906,7 +3906,7 @@ mk_error({mutually_recursive_constants, Consts}) -> [{letval, Ann, _, _} | _] = Consts, mk_t_err(pos(Ann), Msg); mk_error({invalid_const_id, Ann}) -> - Msg = "Pattern matching is not allowed when defining compile-time constants", + Msg = "The name of the compile-time constant cannot have pattern matching nor type", mk_t_err(pos(Ann), Msg); mk_error({invalid_const_expr, ConstId}) -> Msg = io_lib:format("Invalid expression in the definition of the constant `~s`", [name(ConstId)]),