add duplicate-check for user-defined functions, as in the C impl

This commit is contained in:
John Kerl 2020-11-24 14:11:40 -05:00
parent 8065237641
commit 4fed370087

View file

@ -257,7 +257,7 @@ func (this *RootNode) BuildAndInstallUDF(astNode *dsl.ASTNode) error {
functionName := string(astNode.Token.Lit)
if this.udsManager.ExistsByName(functionName) {
if this.udfManager.ExistsByName(functionName) {
return errors.New(
fmt.Sprintf(
"Miller: function named \"%s\" has already been defined.",