aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/declare.ml
diff options
context:
space:
mode:
Diffstat (limited to 'library/declare.ml')
-rw-r--r--library/declare.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/declare.ml b/library/declare.ml
index b3027a3a1..b6da49320 100644
--- a/library/declare.ml
+++ b/library/declare.ml
@@ -334,9 +334,10 @@ let extract_instance ref args =
let hyps0 = current_section_context () in
let na = Array.length args in
let rec peel n acc = function
- | d::hyps ->
+ | (_,None,_ as d)::hyps ->
if List.mem d hyps0 then peel (n-1) acc hyps
else peel (n-1) (args.(n)::acc) hyps
+ | (_,Some _,_)::hyps -> peel n acc hyps
| [] -> Array.of_list acc
in peel (na-1) [] hyps