mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Regression: Generic type could not be found in lambda inside macro #2853
This commit is contained in:
@@ -10947,6 +10947,11 @@ static inline bool sema_expr_analyse_lambda(SemaContext *context, Type *target_t
|
||||
decl->var.is_read = true;
|
||||
}
|
||||
decl_flatten(decl)->is_external_visible = true;
|
||||
if (context->generic_instance)
|
||||
{
|
||||
decl->is_templated = true;
|
||||
decl->instance_id = declid(context->generic_instance);
|
||||
}
|
||||
vec_add(unit->module->lambdas_to_evaluate, decl);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user