equal
deleted
inserted
replaced
577 |
577 |
578 fun standard_infer_types ctxt ts = |
578 fun standard_infer_types ctxt ts = |
579 let val Mode {pattern, ...} = get_mode ctxt in |
579 let val Mode {pattern, ...} = get_mode ctxt in |
580 TypeInfer.infer_types (Syntax.pp ctxt) (tsig_of ctxt) (Syntax.check_typs ctxt) |
580 TypeInfer.infer_types (Syntax.pp ctxt) (tsig_of ctxt) (Syntax.check_typs ctxt) |
581 (try (Consts.the_constraint (consts_of ctxt))) (Variable.def_type ctxt pattern) |
581 (try (Consts.the_constraint (consts_of ctxt))) (Variable.def_type ctxt pattern) |
582 (Variable.names_of ctxt) (Variable.maxidx_of ctxt) NONE (map (rpair dummyT) ts) |
582 (Variable.names_of ctxt) (Variable.maxidx_of ctxt) ts |
583 |> #1 |> map #1 |
|
584 handle TYPE (msg, _, _) => error msg |
583 handle TYPE (msg, _, _) => error msg |
585 end; |
584 end; |
586 |
585 |
587 local |
586 local |
588 |
587 |