mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Recursively check equality for lists and pairs, improve function redefinition error message
This commit is contained in:
parent
6dc0db71e0
commit
ec18d2e611
58 changed files with 288 additions and 172 deletions
|
|
@ -144,7 +144,7 @@ local function parse_line(line, state, namespace)
|
|||
min, max = variant.arity, r.variant.arity
|
||||
end
|
||||
if min == vmin and max == vmax then
|
||||
return nil, ("trying to define %s %s with arity [%s;%s], but another function with the arity exist; at %s"):format(r.type, fqm, min, max, line.source)
|
||||
return nil, ("trying to define %s %s with arity [%s;%s], but another function with the same name and arity exist; at %s"):format(r.type, fqm, min, max, line.source)
|
||||
end
|
||||
end
|
||||
-- add
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue