nytl: bug fix
This commit is contained in:
parent
ea7d50a183
commit
da2cb4261c
@ -542,6 +542,7 @@ namespace nytl {
|
||||
std::string argname = readName(ctx);
|
||||
ASSERT(!argname.empty(), "Expected argument name");
|
||||
if (argname != "_") {
|
||||
ASSERT(arglist.count(argname) == 0, "Repeated argument (" + argname + ")");
|
||||
size_t k = arglist.size();
|
||||
arglist[argname] = k;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user