src/Pure/type_infer_context.ML
changeset 69575 f77cc54f6d47
parent 64556 851ae0e7b09c
child 79411 700d4f16b5f2
equal deleted inserted replaced
69574:b4ea943ce0b7 69575:f77cc54f6d47
    18 
    18 
    19 (** prepare types/terms: create inference parameters **)
    19 (** prepare types/terms: create inference parameters **)
    20 
    20 
    21 (* constraints *)
    21 (* constraints *)
    22 
    22 
    23 val const_sorts =
    23 val const_sorts = Config.declare_bool ("const_sorts", \<^here>) (K true);
    24   Config.bool (Config.declare ("const_sorts", \<^here>) (K (Config.Bool true)));
       
    25 
    24 
    26 fun const_type ctxt =
    25 fun const_type ctxt =
    27   try ((not (Config.get ctxt const_sorts) ? Type.strip_sorts) o
    26   try ((not (Config.get ctxt const_sorts) ? Type.strip_sorts) o
    28     Consts.the_constraint (Proof_Context.consts_of ctxt));
    27     Consts.the_constraint (Proof_Context.consts_of ctxt));
    29 
    28