From 0704f40787d306b00db6bbdfee7e13ee172f600a Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Tue, 28 Nov 2023 12:35:11 -0500 Subject: [PATCH] Add in missing error --- prism/diagnostic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/prism/diagnostic.c b/prism/diagnostic.c index 84278b5e9c..e2181151c2 100644 --- a/prism/diagnostic.c +++ b/prism/diagnostic.c @@ -198,6 +198,7 @@ static const char* const diagnostic_messages[PM_DIAGNOSTIC_ID_LEN] = { [PM_ERR_OPERATOR_WRITE_BLOCK] = "unexpected operator after a call with a block", [PM_ERR_PARAMETER_ASSOC_SPLAT_MULTI] = "unexpected multiple `**` splat parameters", [PM_ERR_PARAMETER_BLOCK_MULTI] = "multiple block parameters; only one block is allowed", + [PM_ERR_PARAMETER_CIRCULAR] = "parameter default value references itself", [PM_ERR_PARAMETER_METHOD_NAME] = "unexpected name for a parameter", [PM_ERR_PARAMETER_NAME_REPEAT] = "repeated parameter name", [PM_ERR_PARAMETER_NO_DEFAULT] = "expected a default value for the parameter",