aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toplevel/classes.ml2
1 files changed, 0 insertions, 2 deletions
diff --git a/toplevel/classes.ml b/toplevel/classes.ml
index 6c447e886c..2e17f646bd 100644
--- a/toplevel/classes.ml
+++ b/toplevel/classes.ml
@@ -165,8 +165,6 @@ let new_instance ?(abstract=false) ?(global=false) ctx (instid, bk, cl) props
let subst = List.map (Evarutil.nf_evar sigma) subst in
if abstract then
begin
- if not (Lib.is_modtype ()) then
- error "Declare Instance while not in Module Type.";
let _, ty_constr = instance_constructor k (List.rev subst) in
let termtype =
let t = it_mkProd_or_LetIn ty_constr (ctx' @ ctx) in