src/Pure/type_infer.ML
changeset 2989 8189a4870d19
parent 2980 98ad57d99427
child 3510 24d235feeb2a
equal deleted inserted replaced
2988:d38f330e58b3 2989:8189a4870d19
   255   let
   255   let
   256 
   256 
   257     (* adjust sorts of parameters *)
   257     (* adjust sorts of parameters *)
   258 
   258 
   259     fun not_in_sort x S' S =
   259     fun not_in_sort x S' S =
   260       "Type variable " ^ x ^ "::" ^ Sorts.str_of_sort S' ^ " not in sort " ^
   260       "Variable " ^ x ^ "::" ^ Sorts.str_of_sort S' ^ " not of sort " ^
   261         Sorts.str_of_sort S ^ ".";
   261         Sorts.str_of_sort S ^ ".";
   262 
   262 
   263     fun meet _ [] = ()
   263     fun meet _ [] = ()
   264       | meet (Link (r as (ref (Param S')))) S =
   264       | meet (Link (r as (ref (Param S')))) S =
   265           if Sorts.sort_le classrel (S', S) then ()
   265           if Sorts.sort_le classrel (S', S) then ()