summaryrefslogtreecommitdiff
path: root/parse/type.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-28 23:36:36 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-28 23:36:36 -0700
commit9a2f63d47a96bf522e6c5d39e215b2e6a9e600c7 (patch)
tree0cca01cbe1cb16b56479f6081c8275bd1df975cc /parse/type.c
parentc5245eaa80064b77186fa286f8e5e8bca73309ab (diff)
downloadmc-9a2f63d47a96bf522e6c5d39e215b2e6a9e600c7.tar.gz
Fix error message for generics in non-generic decls.
Diffstat (limited to 'parse/type.c')
-rw-r--r--parse/type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/type.c b/parse/type.c
index 82b45ba..bba8f29 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -417,7 +417,7 @@ hasparamsrec(Type *t, Bitset *visited)
return 0;
bsput(visited, t->tid);
switch (t->type) {
- case Typaram:
+ case Typaram: return 1;
case Tygeneric: return 1;
case Tyname:
for (i = 0; i < t->narg; i++)