mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
libexpr: Use primOp
getter
This commit is contained in:
parent
c5b1be46b4
commit
c2aaa68c2c
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ std::string showType(const Value & v)
|
|||
switch (v.internalType) {
|
||||
case tString: return v.payload.string.context ? "a string with context" : "a string";
|
||||
case tPrimOp:
|
||||
return fmt("the built-in function '%s'", std::string(v.payload.primOp->name));
|
||||
return fmt("the built-in function '%s'", std::string(v.primOp()->name));
|
||||
case tPrimOpApp:
|
||||
return fmt("the partially applied built-in function '%s'", v.primOpAppPrimOp()->name);
|
||||
case tExternal: return v.external()->showType();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue