]> matita.cs.unibo.it Git - helm.git/commitdiff
assert false could happen
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 6 May 2010 15:45:35 +0000 (15:45 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 6 May 2010 15:45:35 +0000 (15:45 +0000)
helm/software/components/ng_kernel/nCicTypeChecker.ml

index cd49f2cea93332c7de1eb428292240225d4df6b2..02eec0576942c37e9855c5bfd020661916b3183c 100644 (file)
@@ -1304,7 +1304,9 @@ let typecheck_obj (uri,height,metasenv,subst,kind) =
             | C.Appl (C.Const (Ref.Ref (uri,Ref.Ind _) as ref) :: _) ->
                 let _,_,itl,_,_ = E.get_checked_indtys ref in
                   uri, List.length itl
-            | _ -> assert false
+            | _ ->
+              raise (TypeCheckerFailure
+               (lazy "Fix: the recursive argument is not inductive"))
           in
           (* guarded by destructors conditions D{f,k,x,M} *)
           let rec enum_from k =