summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-29 22:35:51 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-29 22:37:27 -0800
commita79ce9169174d4157037d84d85bf630c3094e0f8 (patch)
tree1a6e9b0f066ea111093a3a2666ee4c55a8c4f742 /mi
parentc5649fe3ddc066335f816d59a4f31b9c26b1c230 (diff)
downloadmc-a79ce9169174d4157037d84d85bf630c3094e0f8.tar.gz
Functions act as basic types.
Fixes #65
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)