Fix proc groups from import names

This commit is contained in:
gingerBill committed 2017-12-10 11:35:11 +00:00
1 parent 3703ca4df4
commit 3c6f90e552
11 files changed
+91 -55

No files matched your search

+6 -5
View File
@@ -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;
}
}
}