equal
deleted
inserted
replaced
166 fun def_type ctxt pattern xi = |
166 fun def_type ctxt pattern xi = |
167 let val {binds, constraints = (types, _), ...} = rep_data ctxt in |
167 let val {binds, constraints = (types, _), ...} = rep_data ctxt in |
168 (case Vartab.lookup types xi of |
168 (case Vartab.lookup types xi of |
169 NONE => |
169 NONE => |
170 if pattern then NONE |
170 if pattern then NONE |
171 else Vartab.lookup binds xi |> Option.map (Type_Infer.polymorphicT o #1) |
171 else Vartab.lookup binds xi |> Option.map (Type.mark_polymorphic o #1) |
172 | some => some) |
172 | some => some) |
173 end; |
173 end; |
174 |
174 |
175 val def_sort = Vartab.lookup o #2 o constraints_of; |
175 val def_sort = Vartab.lookup o #2 o constraints_of; |
176 |
176 |