summaryrefslogtreecommitdiff
path: root/contrib/interface/xlate.ml
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/interface/xlate.ml')
-rw-r--r--contrib/interface/xlate.ml12
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/interface/xlate.ml b/contrib/interface/xlate.ml
index ed51b9cb..50f5b947 100644
--- a/contrib/interface/xlate.ml
+++ b/contrib/interface/xlate.ml
@@ -884,7 +884,7 @@ and xlate_tac =
| _ -> assert false)
| _ -> assert false)
| TacExtend (_, "refine", [c]) ->
- CT_refine (xlate_formula (out_gen rawwit_casted_open_constr c))
+ CT_refine (xlate_formula (snd (out_gen rawwit_casted_open_constr c)))
| TacExtend (_,"absurd",[c]) ->
CT_absurd (xlate_formula (out_gen rawwit_constr c))
| TacExtend (_,"contradiction",[opt_c]) ->
@@ -1230,11 +1230,16 @@ and coerce_genarg_to_TARG x =
| TacticArgType ->
let t = xlate_tactic (out_gen rawwit_tactic x) in
CT_coerce_TACTIC_COM_to_TARG t
+ | OpenConstrArgType ->
+ CT_coerce_SCOMMENT_CONTENT_to_TARG
+ (CT_coerce_FORMULA_to_SCOMMENT_CONTENT(xlate_formula
+ (snd (out_gen
+ rawwit_open_constr x))))
| CastedOpenConstrArgType ->
CT_coerce_SCOMMENT_CONTENT_to_TARG
(CT_coerce_FORMULA_to_SCOMMENT_CONTENT(xlate_formula
- (out_gen
- rawwit_casted_open_constr x)))
+ (snd (out_gen
+ rawwit_casted_open_constr x))))
| ConstrWithBindingsArgType -> xlate_error "TODO: generic constr with bindings"
| BindingsArgType -> xlate_error "TODO: generic with bindings"
| RedExprArgType -> xlate_error "TODO: generic red expr"
@@ -1324,6 +1329,7 @@ let coerce_genarg_to_VARG x =
| TacticArgType ->
let t = xlate_tactic (out_gen rawwit_tactic x) in
CT_coerce_TACTIC_OPT_to_VARG (CT_coerce_TACTIC_COM_to_TACTIC_OPT t)
+ | OpenConstrArgType -> xlate_error "TODO: generic open constr"
| CastedOpenConstrArgType -> xlate_error "TODO: generic open constr"
| ConstrWithBindingsArgType -> xlate_error "TODO: generic constr with bindings"
| BindingsArgType -> xlate_error "TODO: generic with bindings"