diff --git a/core_parsing.cpp b/core_parsing.cpp index b44a725..0436fe8 100644 --- a/core_parsing.cpp +++ b/core_parsing.cpp @@ -927,6 +927,8 @@ 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)) + set_flag(result->flags, AST_POLYMORPH); if (is_flag_set(flags, AST_FOREIGN)) set_flag(expr->flags, flags); }