diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-08-22 11:50:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-22 11:50:47 +0100 |
| commit | d3fee9d76172172a0f8a70b96938dff45f3dd7e6 (patch) | |
| tree | e3ccf349254e041a97cb8e5c5860f2b39eb3e46d /src/check_type.cpp | |
| parent | 93b5befe45b6464f30f7a9404d1db2d84edf201f (diff) | |
| parent | 36a6805b7cdb8b5e4014b03756f969ce6548ff73 (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.cpp | 6 |
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); |