mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-26 16:58:46 +00:00
fixes, part of == for TypeProxy done, cotex enchantments, type chack arguments
This commit is contained in:
parent
6dc9c9b5af
commit
f36ff3638b
8 changed files with 195 additions and 121 deletions
|
|
@ -26,6 +26,8 @@ public:
|
|||
|
||||
const Type *get() const;
|
||||
|
||||
bool operator==(const TypeProxy& other) const;
|
||||
|
||||
private:
|
||||
TypeProxy(TypeStorage &type_storage, size_t id)
|
||||
: type_storage_(&type_storage), id_(id) {}
|
||||
|
|
@ -35,6 +37,8 @@ private:
|
|||
size_t id_;
|
||||
};
|
||||
|
||||
using MaybeTypeProxy = std::optional<TypeProxy>;
|
||||
|
||||
class Type {
|
||||
public:
|
||||
Type(Identifier &&identifier, Modifier modifier = nodes::Modifier::CONST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue