src/Pure/Isar/proof_context.ML
changeset 27264 843472ae2116
parent 27259 6e71abb8c994
child 27286 2ea20e5fdf16
equal deleted inserted replaced
27263:a6b7f934fbc4 27264:843472ae2116
   577 
   577 
   578 fun standard_infer_types ctxt ts =
   578 fun standard_infer_types ctxt ts =
   579   let val Mode {pattern, ...} = get_mode ctxt in
   579   let val Mode {pattern, ...} = get_mode ctxt in
   580     TypeInfer.infer_types (Syntax.pp ctxt) (tsig_of ctxt) (Syntax.check_typs ctxt)
   580     TypeInfer.infer_types (Syntax.pp ctxt) (tsig_of ctxt) (Syntax.check_typs ctxt)
   581       (try (Consts.the_constraint (consts_of ctxt))) (Variable.def_type ctxt pattern)
   581       (try (Consts.the_constraint (consts_of ctxt))) (Variable.def_type ctxt pattern)
   582       (Variable.names_of ctxt) (Variable.maxidx_of ctxt) NONE (map (rpair dummyT) ts)
   582       (Variable.names_of ctxt) (Variable.maxidx_of ctxt) ts
   583     |> #1 |> map #1
       
   584     handle TYPE (msg, _, _) => error msg
   583     handle TYPE (msg, _, _) => error msg
   585   end;
   584   end;
   586 
   585 
   587 local
   586 local
   588 
   587