diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-23 11:04:22 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-23 11:04:22 +0100 |
| commit | c2fa79012ea01ad508083f13f86d2b6c8f5045da (patch) | |
| tree | 9f641abba170fe6f78e183842834913ddcdea993 /src/check_decl.c | |
| parent | 3fd37c6dc5da53fd02214214aa4993f02e6bdc83 (diff) | |
Fix `find_using_index_expr`
Diffstat (limited to 'src/check_decl.c')
| -rw-r--r-- | src/check_decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.c b/src/check_decl.c index 0321f3b2e..5239b67d8 100644 --- a/src/check_decl.c +++ b/src/check_decl.c @@ -531,7 +531,7 @@ void check_proc_body(Checker *c, Token token, DeclInfo *decl, Type *type, AstNod for (isize i = 0; i < params->variable_count; i++) { Entity *e = params->variables[i]; GB_ASSERT(e->kind == Entity_Variable); - if (!(e->flags & EntityFlag_Anonymous)) { + if (!(e->flags & EntityFlag_Using)) { continue; } bool is_immutable = e->Variable.is_immutable; |