diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-02-02 12:45:44 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-02-02 12:45:44 +0100 |
commit | 17e3f353df3d829ce57f3eb16ab5c810056cdf9b (patch) | |
tree | 63de40310671aecd7be967c1e389781a62edff31 /src/libexpr/eval.cc | |
parent | cd35bbbeef72375873e396b9ffed14a4638693a8 (diff) | |
parent | 7d4cc5515ce5e4972fd5b474ae18cf95f6ea257e (diff) |
Merge branch 'parser-improvements' of https://github.com/pennae/nix
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 3332dd703..3ebbdca63 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1374,7 +1374,7 @@ void EvalState::callFunction(Value & fun, size_t nrArgs, Value * * args, Value & /* Nope, so show the first unexpected argument to the user. */ for (auto & i : *args[0]->attrs) - if (!lambda.formals->argNames.count(i.name)) + if (!lambda.formals->has(i.name)) throwTypeError(pos, "%1% called with unexpected argument '%2%'", lambda, i.name); abort(); // can't happen } |