summaryrefslogtreecommitdiff
path: root/src/ast_util.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_util.ml')
-rw-r--r--src/ast_util.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ast_util.ml b/src/ast_util.ml
index 2fb90b02..e58842d2 100644
--- a/src/ast_util.ml
+++ b/src/ast_util.ml
@@ -669,7 +669,8 @@ and string_of_pexp (Pat_aux (pexp, _)) =
match pexp with
| Pat_exp (pat, exp) -> string_of_pat pat ^ " -> " ^ string_of_exp exp
| Pat_when (pat, guard, exp) -> string_of_pat pat ^ " when " ^ string_of_exp guard ^ " -> " ^ string_of_exp exp
-and string_of_typ_pat = function
+and string_of_typ_pat (TP_aux (tpat_aux, _)) =
+ match tpat_aux with
| TP_wild -> "_"
| TP_var kid -> string_of_kid kid
| TP_app (f, tpats) -> string_of_id f ^ "(" ^ string_of_list ", " string_of_typ_pat tpats ^ ")"