diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-06-18 13:07:53 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-06-18 13:07:53 -0600 |
commit | e6f93b94fc38d94827778bcaa64642aee5030ecd (patch) | |
tree | aa80872b4ed72abc548a41f52ec876be76fc85a0 /src/libexpr/nixexpr.hh | |
parent | 2f19650768e2bbef0f7ad819c5aa3dce5084d56d (diff) | |
parent | 6c000eed80565d83d596da800ca0db92e248342e (diff) |
Merge branch 'master' into caveman-LOCs
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r-- | src/libexpr/nixexpr.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index 5a98b9149..b1bf9f67b 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -237,11 +237,10 @@ struct ExprLambda : Expr : pos(pos), arg(arg), matchAttrs(matchAttrs), formals(formals), body(body) { if (!arg.empty() && formals && formals->argNames.find(arg) != formals->argNames.end()) - throw ParseError( - ErrorInfo { - .hint = hintfmt("duplicate formal function argument '%1%'", arg), - .nixCode = NixCode { .errPos = pos } - }); + throw ParseError({ + .hint = hintfmt("duplicate formal function argument '%1%'", arg), + .nixCode = NixCode { .errPos = pos } + }); }; void setName(Symbol & name); string showNamePos() const; |