aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Sozeau2015-02-18 12:04:30 +0100
committerMatthieu Sozeau2015-02-18 12:08:21 +0100
commitcdbfad340dcd8cd3428853886964882b389776c6 (patch)
treed536b4de57dc409496b7272c7f500ddffe249087
parent0b53955bb2bec43454ccbd317a09787a24fff3ae (diff)
Fix bug #4046.
-rw-r--r--toplevel/classes.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/classes.ml b/toplevel/classes.ml
index 01b560d0c4..07f881721d 100644
--- a/toplevel/classes.ml
+++ b/toplevel/classes.ml
@@ -208,7 +208,7 @@ let new_instance ?(abstract=false) ?(global=false) poly ctx (instid, bk, cl) pro
let get_id =
function
| Ident id' -> id'
- | _ -> errorlabstrm "new_instance" (Pp.str "Only local structures are handled")
+ | Qualid (loc,id') -> (loc, snd (repr_qualid id'))
in
let props, rest =
List.fold_left