diff options
| author | gingerBill <bill@gingerbill.org> | 2017-12-10 11:35:11 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-12-10 11:35:11 +0000 |
| commit | 3c6f90e5524d38bdd30750eb04441a1897bcd8dd (patch) | |
| tree | 50dc37f196b7a2d0c40e1382950511654d1333a2 /src/parser.cpp | |
| parent | 3703ca4df47134e0c274cf5096d14c9323331ff0 (diff) | |
Fix proc groups from import names
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 704833170..8dd5881a2 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -3280,11 +3280,12 @@ AstNode *parse_proc_type(AstFile *f, Token proc_token) { for_array(i, params->FieldList.list) { AstNode *param = params->FieldList.list[i]; ast_node(f, Field, param); - if (f->type != nullptr && - (f->type->kind == AstNode_TypeType || - f->type->kind == AstNode_PolyType)) { - is_generic = true; - break; + if (f->type != nullptr) { + if (f->type->kind == AstNode_TypeType || + f->type->kind == AstNode_PolyType) { + is_generic = true; + break; + } } } |