From 1087681cad473bdf3ef455d06beb65b7e7625f3d Mon Sep 17 00:00:00 2001 From: sacerdot Date: Mon, 23 May 2005 09:42:16 +0000 Subject: Bug fix for a bug reported by Roland: the function that detects the constants to be expanded during functor application was written supposing that the module had already been checked against its signature. However, this is actually a false hypothesis. The bug fix consists in replacing an "assert false" with the error message that would be obtained type checking the module against its module type. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7061 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/modops.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/modops.ml b/kernel/modops.ml index 390461d5a0..7b4c3095d8 100644 --- a/kernel/modops.ml +++ b/kernel/modops.ml @@ -213,7 +213,7 @@ let resolver_of_environment mbid modtype mp env = else option_app Declarations.force constant.Declarations.const_body - with Not_found -> assert false + with Not_found -> error_no_such_label (con_label con') in con,constr ) constants -- cgit v1.2.3