mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 02:42:22 -07:00
opaque keyword and type
This commit is contained in:
@@ -2341,6 +2341,13 @@ bool check_type_internal(CheckerContext *ctx, Ast *e, Type **type, Type *named_t
|
||||
return true;
|
||||
case_end;
|
||||
|
||||
case_ast_node(ot, OpaqueType, e);
|
||||
Type *elem = strip_opaque_type(check_type(ctx, ot->type));
|
||||
*type = alloc_type_opaque(elem);
|
||||
set_base_type(named_type, *type);
|
||||
return true;
|
||||
case_end;
|
||||
|
||||
case_ast_node(at, ArrayType, e);
|
||||
if (at->count != nullptr) {
|
||||
Operand o = {};
|
||||
|
||||
Reference in New Issue
Block a user