build fixes

This commit is contained in:
ProgramSnail 2024-08-09 18:33:07 +03:00
parent 61ab01b6fd
commit 3de131623c
3 changed files with 4 additions and 2 deletions

View file

@ -11,7 +11,8 @@ template <>
struct CheckTask<nodes::Literal> : public CheckTaskBase<nodes::Literal> { struct CheckTask<nodes::Literal> : public CheckTaskBase<nodes::Literal> {
using CheckTaskBase<nodes::Literal>::CheckTaskBase; using CheckTaskBase<nodes::Literal>::CheckTaskBase;
Result operator()(const nodes::Literal &literal, Arguments &&arguments); Result operator()(const nodes::Literal &literal,
const Arguments &arguments) override;
}; };
} // namespace type_check } // namespace type_check

View file

@ -38,7 +38,7 @@ nodes::TypeProxy get_literal_type(const nodes::Literal &literal,
} }
Result CheckTask<nodes::Literal>::operator()(const nodes::Literal &literal, Result CheckTask<nodes::Literal>::operator()(const nodes::Literal &literal,
Arguments &&arguments) { const Arguments &arguments) {
auto const type = get_literal_type(literal, this->executor); auto const type = get_literal_type(literal, this->executor);
return type_same_to_expected(type, arguments, literal, this->executor); return type_same_to_expected(type, arguments, literal, this->executor);
} }

View file

@ -1,5 +1,6 @@
#include "expression_type_check.hpp" #include "expression_type_check.hpp"
#include "basic_nodes.hpp" #include "basic_nodes.hpp"
#include "basic_type_check.hpp"
#include "builtin_types.hpp" #include "builtin_types.hpp"
#include "type_nodes.hpp" #include "type_nodes.hpp"