summaryrefslogtreecommitdiff
path: root/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/types.hpp b/types.hpp
index ef540a93..02355d66 100644
--- a/types.hpp
+++ b/types.hpp
@@ -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) {}