Add @local and fix visibility issues for generic methods.

This commit is contained in:
Christoffer Lerno
2023-02-14 12:08:14 +01:00
committed by Christoffer Lerno
parent 8184fba34b
commit 03cd56e46b
20 changed files with 295 additions and 127 deletions

View File

@@ -342,7 +342,7 @@ static Expr *parse_lambda(ParseContext *c, Expr *left)
advance_and_verify(c, TOKEN_FN);
Decl *func = decl_calloc();
func->decl_kind = DECL_FUNC;
func->is_private = true;
func->visibility = VISIBLE_LOCAL;
func->func_decl.generated_lambda = NULL;
TypeInfo *return_type = NULL;
if (!tok_is(c, TOKEN_LPAREN))