From a43b89f36e988df8268ee92ea54017806b3226bb Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 29 Oct 2017 11:35:21 +0000 Subject: #alias type declarations; core library additions; `_global` import name for the global scope --- src/check_type.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index e6cddf62e..95b876ef8 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2131,6 +2131,12 @@ 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 `#alias`"); + // NOTE(bill): Treat it as a HelperType to remove errors + return check_type_internal(c, at->type, type, named_type); + case_end; + case_ast_node(pt, PolyType, e); AstNode *ident = pt->type; if (ident->kind != AstNode_Ident) { -- cgit v1.2.3