From 3de131623c2ec1763272483bf12534db8b410670 Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Fri, 9 Aug 2024 18:33:07 +0300 Subject: [PATCH] build fixes --- lang/type_check/include/basic_type_check.hpp | 3 ++- lang/type_check/src/basic_type_check.cpp | 2 +- lang/type_check/src/expression_type_check.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lang/type_check/include/basic_type_check.hpp b/lang/type_check/include/basic_type_check.hpp index ab8eac1..17e3401 100644 --- a/lang/type_check/include/basic_type_check.hpp +++ b/lang/type_check/include/basic_type_check.hpp @@ -11,7 +11,8 @@ template <> struct CheckTask : public CheckTaskBase { using CheckTaskBase::CheckTaskBase; - Result operator()(const nodes::Literal &literal, Arguments &&arguments); + Result operator()(const nodes::Literal &literal, + const Arguments &arguments) override; }; } // namespace type_check diff --git a/lang/type_check/src/basic_type_check.cpp b/lang/type_check/src/basic_type_check.cpp index 44d4584..9283b10 100644 --- a/lang/type_check/src/basic_type_check.cpp +++ b/lang/type_check/src/basic_type_check.cpp @@ -38,7 +38,7 @@ nodes::TypeProxy get_literal_type(const nodes::Literal &literal, } Result CheckTask::operator()(const nodes::Literal &literal, - Arguments &&arguments) { + const Arguments &arguments) { auto const type = get_literal_type(literal, this->executor); return type_same_to_expected(type, arguments, literal, this->executor); } diff --git a/lang/type_check/src/expression_type_check.cpp b/lang/type_check/src/expression_type_check.cpp index 56f9539..7cf6b34 100644 --- a/lang/type_check/src/expression_type_check.cpp +++ b/lang/type_check/src/expression_type_check.cpp @@ -1,5 +1,6 @@ #include "expression_type_check.hpp" #include "basic_nodes.hpp" +#include "basic_type_check.hpp" #include "builtin_types.hpp" #include "type_nodes.hpp"