]> matita.cs.unibo.it Git - helm.git/commitdiff
Invariant dropped: NotationPt.NCic t can now contain metas.
authorAndrea Asperti <andrea.asperti@unibo.it>
Thu, 18 Nov 2010 10:02:14 +0000 (10:02 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Thu, 18 Nov 2010 10:02:14 +0000 (10:02 +0000)
We do not know if the invariant was exploited somewhere...

matita/components/ng_disambiguation/nCicDisambiguate.ml

index cdb90ea0212761a4d7e0e31870fe7606719998d4..be5aacb93b1daf512730eed4ab846b58c8b5680c 100644 (file)
@@ -328,10 +328,7 @@ let interpretate_term_and_interpretate_term_option
         with NRef.IllFormedReference _ ->
          NotationPt.fail loc "Ill formed reference")
     | NotationPt.NRef nref -> NCic.Const nref
-    | NotationPt.NCic t -> 
-           let context = (* to make metas_of_term happy *)
-             List.map (fun x -> x,NCic.Decl (NCic.Implicit `Type)) context in
-           assert(NCicUntrusted.metas_of_term [] context t = []); t
+    | NotationPt.NCic t ->  t
     | NotationPt.Implicit `Vector -> NCic.Implicit `Vector
     | NotationPt.Implicit `JustOne -> NCic.Implicit `Term
     | NotationPt.Implicit (`Tagged s) -> NCic.Implicit (`Tagged s)