mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-15 02:12:22 -07:00
distinct keyword for type declarations
This commit is contained in:
+3
-3
@@ -1963,10 +1963,10 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type)
|
||||
return check_type_internal(c, ht->type, type, named_type);
|
||||
case_end;
|
||||
|
||||
case_ast_node(at, AliasType, e);
|
||||
error(e, "Invalid use of '#type_alias'");
|
||||
case_ast_node(dt, DistinctType, e);
|
||||
error(e, "Invalid use of a distinct type");
|
||||
// NOTE(bill): Treat it as a HelperType to remove errors
|
||||
return check_type_internal(c, at->type, type, named_type);
|
||||
return check_type_internal(c, dt->type, type, named_type);
|
||||
case_end;
|
||||
|
||||
case_ast_node(pt, PolyType, e);
|
||||
|
||||
Reference in New Issue
Block a user