diff options
Diffstat (limited to 'src/parser/parser_struct.c')
| -rw-r--r-- | src/parser/parser_struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/parser_struct.c b/src/parser/parser_struct.c index b7dec32..84450ba 100644 --- a/src/parser/parser_struct.c +++ b/src/parser/parser_struct.c @@ -142,7 +142,7 @@ ASTNode *parse_trait(ParserContext *ctx, Lexer *l) n_node->trait.methods = methods; n_node->trait.generic_params = generic_params; n_node->trait.generic_param_count = generic_count; - + if (generic_count > 0) { ctx->known_generics_count -= generic_count; |
