1
0
Fork 0
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:
Sergei Zimmerman 2025-06-10 13:19:03 +00:00
parent c5b1be46b4
commit c2aaa68c2c
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

View file

@ -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();