From: Brendan Hansen Date: Thu, 28 Jan 2021 19:01:52 +0000 (-0600) Subject: allow for using members of polymorphic struct instantiations X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=712b959f0fc03257f74045a266e3651c7bcc26d0;p=onyx.git allow for using members of polymorphic struct instantiations --- diff --git a/bin/onyx b/bin/onyx index 10886019..73509c3b 100755 Binary files a/bin/onyx and b/bin/onyx differ diff --git a/onyx.exe b/onyx.exe index 56bf501f..7602c420 100644 Binary files a/onyx.exe and b/onyx.exe differ diff --git a/src/onyxsymres.c b/src/onyxsymres.c index 1fd4bfe6..54d480b7 100644 --- a/src/onyxsymres.c +++ b/src/onyxsymres.c @@ -136,7 +136,7 @@ AstType* symres_type(AstType* type) { used = ((AstTypeAlias *) used)->to; } - b32 use_works = (used->kind == Ast_Kind_Struct_Type); + b32 use_works = (used->kind == Ast_Kind_Struct_Type || used->kind == Ast_Kind_Poly_Call_Type); if (used->kind == Ast_Kind_Type_Raw_Alias) { AstTypeRawAlias* alias = (AstTypeRawAlias *) used;