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