mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-24 15:58:45 +00:00
type check arguments added
This commit is contained in:
parent
3907da619e
commit
a2abb598ac
2 changed files with 38 additions and 71 deletions
|
|
@ -136,6 +136,12 @@ public:
|
|||
};
|
||||
|
||||
class Arguments {
|
||||
public:
|
||||
static Arguments expect_builtin(builtin::types::Type type,
|
||||
SourcesManager &sources_manager) {
|
||||
return {{sources_manager.get_type_storage()->primitive_type(type)}};
|
||||
}
|
||||
|
||||
public:
|
||||
nodes::MaybeTypeProxy expected_type = {};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue