src/Pure/pattern.ML
changeset 12980 8f717cbd4e44
parent 12826 dfb214fa310b
child 13195 98975cc13d28
     1.1 --- a/src/Pure/pattern.ML	Thu Feb 28 19:22:56 2002 +0100
     1.2 +++ b/src/Pure/pattern.ML	Thu Feb 28 19:23:14 2002 +0100
     1.3 @@ -420,7 +420,8 @@
     1.4        in (fn u => Abs (x, T, abstract_over (Free (x', T), u)), t') end;
     1.5  
     1.6      fun match_rew tm (tm1, tm2) =
     1.7 -      Some (subst_vars (match tsig (tm1, tm)) tm2) handle MATCH => None;
     1.8 +      Some (subst_vars (match tsig (tm1, tm)) (if_none (Term.rename_abs tm1 tm tm2) tm2))
     1.9 +        handle MATCH => None;
    1.10      fun rew (Abs (_, _, body) $ t) = Some (subst_bound (t, body))
    1.11        | rew tm = get_first (match_rew tm) rules;
    1.12