aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp11
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;
+ }
}
}