mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add @local and fix visibility issues for generic methods.
This commit is contained in:
committed by
Christoffer Lerno
parent
8184fba34b
commit
03cd56e46b
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user