* [Go] Fix argument names in inherited functions #795 This commit fixes a wrong argument name replacement in the inherited functions as well as a memory leak. * Add testcase for #795 * Move variable_replacement testcase into common * Move variable_replacement testcase into common
This commit is contained in:
parent
457ea5d209
commit
bac85d5b1a
3 changed files with 19 additions and 1 deletions
|
|
@ -2445,7 +2445,8 @@ private:
|
|||
}
|
||||
|
||||
String *code = Copy(Getattr(n, "wrap:action"));
|
||||
Replaceall(code, Getattr(parms, "lname"), current);
|
||||
Replace(code, Getattr(parms, "lname"), current, DOH_REPLACE_ANY | DOH_REPLACE_ID);
|
||||
Delete(current);
|
||||
Printv(actioncode, code, "\n", NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue