allow for using members of polymorphic struct instantiations
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 28 Jan 2021 19:01:52 +0000 (13:01 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 28 Jan 2021 19:01:52 +0000 (13:01 -0600)
bin/onyx
onyx.exe
src/onyxsymres.c

index 108860196025feff33d86fa5a6461de183d3d88d..73509c3be59f7b81170b919590eeb58aa3c142a6 100755 (executable)
Binary files a/bin/onyx and b/bin/onyx differ
index 56bf501f0794bbd6383e439c6ac8192d88094c9f..7602c420744d9c319c11fd781f14cffed2a0fa5c 100644 (file)
Binary files a/onyx.exe and b/onyx.exe differ
index 1fd4bfe6b6b69a1205d8d5de1799dfa4b2e12539..54d480b71126b5317ff276a48517176568e218be 100644 (file)
@@ -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;