diff --git a/typing/subst.ml b/typing/subst.ml index daa3751af..c331993e2 100644 --- a/typing/subst.ml +++ b/typing/subst.ml @@ -147,6 +147,7 @@ let rec typexp s ty = end let type_expr s ty = + if s = identity then ty else let ty' = typexp s ty in cleanup_types (); unmark_type ty';