author | wenzelm |
Tue, 14 Jul 2009 12:10:01 +0200 | |
changeset 32002 | 1a35de4112bb |
parent 32001 | fafefd0b341c |
child 32003 | befec6450fd6 |
--- a/src/Pure/type_infer.ML Tue Jul 14 10:56:43 2009 +0200 +++ b/src/Pure/type_infer.ML Tue Jul 14 12:10:01 2009 +0200 @@ -39,7 +39,8 @@ fun is_param (x, _: int) = String.isPrefix "?" x; fun param i (x, S) = TVar (("?" ^ x, i), S); -val paramify_vars = Term.map_atyps (fn TVar ((x, i), S) => param i (x, S) | T => T); +val paramify_vars = + perhaps (Term_Subst.map_atypsT_option (fn TVar ((x, i), S) => SOME (param i (x, S)) | _ => NONE)); val paramify_dummies = let