summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
Diffstat (limited to 'mi')
-rw-r--r--mi/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/match.c b/mi/match.c
index ea2fa49..ceccab6 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -249,7 +249,7 @@ static int isbasictype(Dtree *dt, Type *ty)
{
if (ty->type == Typtr)
return !dt->ptrwalk;
- return istyprimitive(ty) || ty->type == Tyvoid;
+ return istyprimitive(ty) || ty->type == Tyvoid || ty->type == Tyfunc;
}
static int addwildrec(Srcloc loc, Type *ty, Dtree *start, Dtree *accept, Dtree ***end, size_t *nend)