src/Pure/Isar/class_declaration.ML
changeset 42375 774df7c59508
parent 42360 da8817d01e7c
child 42402 c7139609b67d
equal deleted inserted replaced
42374:b9a6b465da25 42375:774df7c59508
   251         val ty0 = Type.strip_sorts ty;
   251         val ty0 = Type.strip_sorts ty;
   252         val ty' = map_atyps (K (TFree (Name.aT, [class]))) ty0;
   252         val ty' = map_atyps (K (TFree (Name.aT, [class]))) ty0;
   253         val syn = (the_default NoSyn o AList.lookup Binding.eq_name global_syntax) b;
   253         val syn = (the_default NoSyn o AList.lookup Binding.eq_name global_syntax) b;
   254       in
   254       in
   255         thy
   255         thy
   256         |> Sign.declare_const ((b, ty0), syn)
   256         |> Sign.declare_const_global ((b, ty0), syn)
   257         |> snd
   257         |> snd
   258         |> pair ((Variable.name b, ty), (c, ty'))
   258         |> pair ((Variable.name b, ty), (c, ty'))
   259       end;
   259       end;
   260   in
   260   in
   261     thy
   261     thy