diff options
author | 2005-05-23 09:42:16 +0000 | |
---|---|---|
committer | 2005-05-23 09:42:16 +0000 | |
commit | 1087681cad473bdf3ef455d06beb65b7e7625f3d (patch) | |
tree | 26d21779286c2bdcdb2677bafebebf4ee2a88790 /kernel | |
parent | e9c8343ccb176c7fac92fd66271c91fadf4d0eb6 (diff) |
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
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/modops.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/modops.ml b/kernel/modops.ml index 390461d5a..7b4c3095d 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 |