From 47910007a9eff37c9f364a269b46874165711abf Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Sat, 14 Nov 2020 16:14:48 +0100 Subject: Add a new evar source to refer to evars which are types of evars. To tie the knot (since the evar depends on the evar type and the source of the evar type of the evar), we use an "update_source" function. An alternative could be to provide a function to build both an evar with its evar type directly in evd.ml... --- engine/evar_kinds.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'engine/evar_kinds.ml') diff --git a/engine/evar_kinds.ml b/engine/evar_kinds.ml index 71d68f739e..fb41c4491e 100644 --- a/engine/evar_kinds.ml +++ b/engine/evar_kinds.ml @@ -40,6 +40,7 @@ type t = | ImplicitArg of GlobRef.t * (int * Id.t option) * bool (** Force inference *) | BinderType of Name.t + | EvarType of Id.t option * Evar.t (* type of an optionally named evar *) | NamedHole of Id.t (* coming from some ?[id] syntax *) | QuestionMark of question_mark | CasesType of bool (* true = a subterm of the type *) -- cgit v1.2.3