diff options
Diffstat (limited to 'types.hpp')
-rw-r--r-- | types.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3,7 +3,10 @@ #include <vector>
#include "coretypes.hpp"
-#include "ast/ast.hpp"
+
+namespace AST {
+class Expr;
+}
class TypeRef
{
@@ -22,7 +25,7 @@ public: struct TagPointer {};
TypeRef(TagPointer _, bool is_mut, TypeRef inner_type) {}
struct TagSizedArray {};
- TypeRef(TagSizedArray _, TypeRef inner_type, AST::Expr size) {}
+ TypeRef(TagSizedArray _, TypeRef inner_type, AST::Expr size);
struct TagUnsizedArray {};
TypeRef(TagUnsizedArray _, TypeRef inner_type) {}
|