diff options
Diffstat (limited to 'src/codegen/codegen_decl.c')
| -rw-r--r-- | src/codegen/codegen_decl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/codegen/codegen_decl.c b/src/codegen/codegen_decl.c index 109aa9a..18d81f5 100644 --- a/src/codegen/codegen_decl.c +++ b/src/codegen/codegen_decl.c @@ -732,6 +732,11 @@ void emit_protos(ASTNode *node, FILE *out) ASTNode *m = f->impl.methods; while (m) { + if (m->func.generic_params) + { + m = m->next; + continue; + } char *fname = m->func.name; char *proto = xmalloc(strlen(fname) + strlen(sname) + 2); int slen = strlen(sname); @@ -810,6 +815,11 @@ void emit_protos(ASTNode *node, FILE *out) ASTNode *m = f->impl_trait.methods; while (m) { + if (m->func.generic_params) + { + m = m->next; + continue; + } if (m->func.is_async) { fprintf(out, "Async %s(%s);\n", m->func.name, m->func.args); |
