aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2021-08-22 11:50:47 +0100
committerGitHub <noreply@github.com>2021-08-22 11:50:47 +0100
commitd3fee9d76172172a0f8a70b96938dff45f3dd7e6 (patch)
treee3ccf349254e041a97cb8e5c5860f2b39eb3e46d /src/check_type.cpp
parent93b5befe45b6464f30f7a9404d1db2d84edf201f (diff)
parent36a6805b7cdb8b5e4014b03756f969ce6548ff73 (diff)
Merge pull request #1093 from odin-lang/multi-pointers
Multi Pointers `[^]T`
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 867b4d7b2..3541eef61 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2525,6 +2525,12 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
return true;
case_end;
+ case_ast_node(pt, MultiPointerType, e);
+ *type = alloc_type_multi_pointer(check_type(ctx, pt->type));
+ set_base_type(named_type, *type);
+ return true;
+ case_end;
+
case_ast_node(rt, RelativeType, e);
GB_ASSERT(rt->tag->kind == Ast_CallExpr);
ast_node(ce, CallExpr, rt->tag);