]> matita.cs.unibo.it Git - helm.git/commitdiff
bugfix: use rev_uniq also on non-located term
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 5 Feb 2004 17:17:57 +0000 (17:17 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 5 Feb 2004 17:17:57 +0000 (17:17 +0000)
helm/ocaml/cic_disambiguation/disambiguate.ml

index a539ffd8cba2c468397f61bf8658d0ba9b0741cf..f75941475563d0ec45e87f8f2dc25019f921430e 100644 (file)
@@ -293,9 +293,10 @@ let domain_of_term ~context ast =
       List.rev uniq_rev_l
   in
             
-  match ast with
-  | CicAst.AttributedTerm (`Loc loc, term) -> rev_uniq (aux loc context term)
-  | term -> aux (-1, -1) context term
+  rev_uniq
+    (match ast with
+    | CicAst.AttributedTerm (`Loc loc, term) -> aux loc context term
+    | term -> aux (-1, -1) context term)
 
 
   (* dom1 \ dom2 *)