From: Brendan Hansen Date: Tue, 28 Sep 2021 03:34:12 +0000 (-0500) Subject: silly little bugfix for type alias to poly-instantiation X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=b9008523923af77439f6a887abf7867e0eb13433;p=onyx.git silly little bugfix for type alias to poly-instantiation --- diff --git a/bin/onyx b/bin/onyx index a7ddb164..40b79253 100755 Binary files a/bin/onyx and b/bin/onyx differ diff --git a/src/parser.c b/src/parser.c index ea195a31..c0a11f46 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2561,7 +2561,7 @@ static AstBinding* parse_top_level_binding(OnyxParser* parser, OnyxToken* symbol } if (node->kind == Ast_Kind_Type_Alias) node->token = symbol; - else if (node_is_type((AstNode *) node)); + if (node_is_type((AstNode *) node) && node->kind != Ast_Kind_Type_Alias); else if (node->kind == Ast_Kind_Package); else if (node->kind == Ast_Kind_NumLit); else {