]> matita.cs.unibo.it Git - helm.git/commitdiff
OCaml 4.0 detects a not handled case.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 4 Mar 2014 12:07:04 +0000 (12:07 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 4 Mar 2014 12:07:04 +0000 (12:07 +0000)
I hope the assertion will never be reached, but I ignore why.
I think this is really a bug and code must be written there.

matita/components/ng_refiner/nCicRefiner.ml

index af8e1d87a1f31c62dded9015374d1786258bd117..3aabdf1d4a2b915fa66b17901e217a75d20097ec 100644 (file)
@@ -934,6 +934,7 @@ and try_coercions status
            | x::_ -> x 
            | _ -> assert false))
     | `XTProd -> C.Prod ("_",C.Implicit `Type,C.Implicit `Type)
+    | `XTInd -> assert false(*CSC: was not handled, OCaml 4.0 complains. ??? *)
   in
   pp(lazy("try_coercion " ^ 
     status#ppterm ~metasenv ~subst ~context infty ^ " |---> " ^