mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
libexpr: store ExprLambda data in Expr::alloc
This commit is contained in:
parent
4a2fb18ba0
commit
3a3c062982
10 changed files with 88 additions and 61 deletions
|
|
@ -112,7 +112,7 @@ TEST_F(ValuePrintingTests, vLambda)
|
|||
auto body = ExprInt(0);
|
||||
auto formals = Formals{};
|
||||
|
||||
ExprLambda eLambda(posIdx, createSymbol("a"), &formals, &body);
|
||||
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), formals, &body);
|
||||
|
||||
Value vLambda;
|
||||
vLambda.mkLambda(&env, &eLambda);
|
||||
|
|
@ -502,7 +502,7 @@ TEST_F(ValuePrintingTests, ansiColorsLambda)
|
|||
auto body = ExprInt(0);
|
||||
auto formals = Formals{};
|
||||
|
||||
ExprLambda eLambda(posIdx, createSymbol("a"), &formals, &body);
|
||||
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), formals, &body);
|
||||
|
||||
Value vLambda;
|
||||
vLambda.mkLambda(&env, &eLambda);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue