Index: src/GenPoly/GenPoly.cc
===================================================================
--- src/GenPoly/GenPoly.cc	(revision 3100754a66119592e773d53876efbcdb4e3e70f8)
+++ src/GenPoly/GenPoly.cc	(revision 361bf012e550db91b38f772bfbc7cb7ed2e49033)
@@ -567,5 +567,5 @@
 
 	void makeTyVarMap(const ast::Type * type, TyVarMap & tyVarMap) {
-		if (auto ptype = dynamic_cast<const ast::ParameterizedType *>(type)) {
+		if (auto ptype = dynamic_cast<const ast::FunctionType *>(type)) {
  			for (auto & tyVar : ptype->forall) {
 				assert (tyVar);
