mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-05 22:48:43 +00:00
build fixes
This commit is contained in:
parent
61ab01b6fd
commit
3de131623c
3 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,8 @@ template <>
|
|||
struct CheckTask<nodes::Literal> : public CheckTaskBase<nodes::Literal> {
|
||||
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
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ nodes::TypeProxy get_literal_type(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);
|
||||
return type_same_to_expected(type, arguments, literal, this->executor);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue