src/HOL/Tools/record.ML
changeset 58936 7fbe4436952d
parent 58675 69571f0a93df
child 58956 a816aa3ff391
equal deleted inserted replaced
58935:dcad9bad43e7 58936:7fbe4436952d
  2260 
  2260 
  2261 in
  2261 in
  2262 
  2262 
  2263 fun add_record (params, binding) raw_parent raw_fields thy =
  2263 fun add_record (params, binding) raw_parent raw_fields thy =
  2264   let
  2264   let
  2265     val _ = Theory.requires thy (Context.theory_name @{theory}) "record definitions";
       
  2266 
       
  2267     val ctxt = Proof_Context.init_global thy;
  2265     val ctxt = Proof_Context.init_global thy;
  2268     fun cert_typ T = Type.no_tvars (Proof_Context.cert_typ ctxt T)
  2266     fun cert_typ T = Type.no_tvars (Proof_Context.cert_typ ctxt T)
  2269       handle TYPE (msg, _, _) => error msg;
  2267       handle TYPE (msg, _, _) => error msg;
  2270 
  2268 
  2271 
  2269