diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-01-29 22:35:51 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-01-29 22:37:27 -0800 |
commit | a79ce9169174d4157037d84d85bf630c3094e0f8 (patch) | |
tree | 1a6e9b0f066ea111093a3a2666ee4c55a8c4f742 /mi | |
parent | c5649fe3ddc066335f816d59a4f31b9c26b1c230 (diff) | |
download | mc-a79ce9169174d4157037d84d85bf630c3094e0f8.tar.gz |
Functions act as basic types.
Fixes #65
Diffstat (limited to 'mi')
-rw-r--r-- | mi/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |