diff options
| author | Pierre-Marie Pédrot | 2014-03-02 18:11:29 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2014-03-02 19:13:39 +0100 |
| commit | 26f47b04122e79b37bce0692e4d1f1559cfef700 (patch) | |
| tree | b024b454c5cf3b354f8722d53daa48f40d129867 /interp/notation_ops.ml | |
| parent | 4c6b0687a6268a6c27958fff989b67fcccadba35 (diff) | |
Adding an equality function over glob_constr
Diffstat (limited to 'interp/notation_ops.ml')
| -rw-r--r-- | interp/notation_ops.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interp/notation_ops.ml b/interp/notation_ops.ml index bd61ba28fc..5066e2e225 100644 --- a/interp/notation_ops.ml +++ b/interp/notation_ops.ml @@ -526,7 +526,7 @@ let bind_env alp (sigma,sigmalist,sigmabinders as fullsigma) var v = | _, GHole _ -> add_env alp (Id.List.remove_assoc var sigma,sigmalist,sigmabinders) var v | _, _ -> - if Pervasives.(=) v v' then fullsigma (** FIXME *) + if glob_constr_eq v v' then fullsigma else raise No_match with Not_found -> add_env alp fullsigma var v @@ -791,7 +791,7 @@ let add_patterns_for_params ind l = let bind_env_cases_pattern (sigma,sigmalist,x as fullsigma) var v = try let vvar = Id.List.assoc var sigma in - if Pervasives.(=) v vvar then fullsigma else raise No_match (** FIXME *) + if cases_pattern_eq v vvar then fullsigma else raise No_match with Not_found -> (* TODO: handle the case of multiple occs in different scopes *) (var,v)::sigma,sigmalist,x |
