shithub: mc

Download patch

ref: a79ce9169174d4157037d84d85bf630c3094e0f8
parent: c5649fe3ddc066335f816d59a4f31b9c26b1c230
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 29 17:35:51 EST 2016

Functions act as basic types.

	Fixes #65

--- a/mi/match.c
+++ b/mi/match.c
@@ -249,7 +249,7 @@
 {
 	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)