Error (typechecking) This expression has type p<int, int> which should be a function type.