use plain errPos instead of nixCode; fix tests
This commit is contained in:
@@ -239,7 +239,7 @@ struct ExprLambda : Expr
|
||||
if (!arg.empty() && formals && formals->argNames.find(arg) != formals->argNames.end())
|
||||
throw ParseError({
|
||||
.hint = hintfmt("duplicate formal function argument '%1%'", arg),
|
||||
.nixCode = NixCode { .errPos = pos }
|
||||
.errPos = pos
|
||||
});
|
||||
};
|
||||
void setName(Symbol & name);
|
||||
|
||||
Reference in New Issue
Block a user