Polymorphs nested structs
This commit is contained in:
@@ -927,8 +927,10 @@ parse_decl(B32 is_global) {
|
||||
auto a = (Ast_Lambda *)expr;
|
||||
if (a->scope || is_flag_set(flags, AST_FOREIGN)) {
|
||||
result->kind = AST_LAMBDA;
|
||||
if (is_flag_set(a->flags, AST_POLYMORPH))
|
||||
if (is_flag_set(a->flags, AST_POLYMORPH)) {
|
||||
set_flag(result->flags, AST_POLYMORPH);
|
||||
set_flag(result->flags, AST_PARENT_POLYMORPH);
|
||||
}
|
||||
if (is_flag_set(flags, AST_FOREIGN))
|
||||
set_flag(expr->flags, flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user