aboutsummaryrefslogtreecommitdiff
path: root/interp/notation_ops.ml
diff options
context:
space:
mode:
authorMatthieu Sozeau2013-11-25 17:03:04 +0100
committerMatthieu Sozeau2014-05-06 09:58:56 +0200
commit6f54f7411f6e42298e833215fde9f38dd899e5dc (patch)
tree233c01b784eb2404c28747c56637b7e591c95f08 /interp/notation_ops.ml
parent1dd78acac418c0f69abb8d9f5d8db13351f01ccc (diff)
Fix inversion of notations for projections.
Diffstat (limited to 'interp/notation_ops.ml')
-rw-r--r--interp/notation_ops.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/interp/notation_ops.ml b/interp/notation_ops.ml
index 4984bfc387..5cad2b54d6 100644
--- a/interp/notation_ops.ml
+++ b/interp/notation_ops.ml
@@ -669,6 +669,8 @@ let rec match_ inner u alp (tmetas,blmetas as metas) sigma a1 a2 =
| GVar (_,id1), NVar id2 when alpha_var id1 id2 alp -> sigma
| GRef (_,r1,_), NRef r2 when (eq_gr r1 r2) -> sigma
| GPatVar (_,(_,n1)), NPatVar n2 when Id.equal n1 n2 -> sigma
+ | GProj (loc,f1,c1), NProj (f2,c2) when Constant.equal f1 f2 ->
+ match_in u alp metas sigma c1 c2
| GApp (loc,f1,l1), NApp (f2,l2) ->
let n1 = List.length l1 and n2 = List.length l2 in
let f1,l1,f2,l2 =