mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
fixes
This commit is contained in:
parent
b466d51952
commit
57c2dd5d85
2 changed files with 3 additions and 3 deletions
|
@ -1278,7 +1278,7 @@ void EvalState::callFunction(Value & fun, Value & arg, Value & v, const Pos & po
|
|||
if (!fun.isLambda()) {
|
||||
auto error = TypeError({
|
||||
// .hint = hintfmt("attempt to call something which is not a function but %1%", showType(fun)),
|
||||
.hint = hintfmt("attempt to call something which is not a function but %1%", fun),
|
||||
.msg = hintfmt("attempt to call something which is not a function but %1%", fun),
|
||||
.errPos = pos
|
||||
});
|
||||
if (debuggerHook)
|
||||
|
|
|
@ -537,8 +537,8 @@ bool NixRepl::processLine(string line)
|
|||
isVarName(name = removeWhitespace(string(line, 0, p))))
|
||||
{
|
||||
Expr * e = parseString(string(line, p + 1));
|
||||
Value & v(*state->allocValue());
|
||||
v.mkThunk(env, e);
|
||||
Value *v = new Value(*state->allocValue());
|
||||
v->mkThunk(env, e);
|
||||
addVarToScope(state->symbols.create(name), v);
|
||||
} else {
|
||||
Value v;
|
||||
|
|
Loading…
Reference in a new issue