Tweak reporting function call type error

This commit is contained in:
Nikita Lisitsa 2026-03-26 15:53:06 +03:00
parent d31758eb4a
commit 81825aee7f

View file

@ -542,7 +542,7 @@ namespace pslang::ast
std::string function_name; std::string function_name;
if (auto identifier = std::get_if<ast::identifier>(node.function.get())) if (auto identifier = std::get_if<ast::identifier>(node.function.get()))
function_name = identifier->name + " "; function_name = "\"" + identifier->name + "\" ";
auto function_type = get_type(*node.function); auto function_type = get_type(*node.function);