aboutsummaryrefslogtreecommitdiff
path: root/tactics/tacintern.ml
diff options
context:
space:
mode:
authorArnaud Spiwack2014-07-29 14:07:42 +0200
committerArnaud Spiwack2014-07-29 17:16:29 +0200
commitcf04daec997ae431b14dd3a3bbf0db22013b3c71 (patch)
tree4c200f515b5dbb061133f38d7908157be400864d /tactics/tacintern.ml
parent9e8316d8fd6a13966c21ef77d5fcba270bc9a32a (diff)
Untyped terms in tactic: function [type_term c] to give a typed version of [c].
Diffstat (limited to 'tactics/tacintern.ml')
-rw-r--r--tactics/tacintern.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tactics/tacintern.ml b/tactics/tacintern.ml
index 44b695e219..a651d298fb 100644
--- a/tactics/tacintern.ml
+++ b/tactics/tacintern.ml
@@ -631,7 +631,7 @@ and intern_tactic_as_arg loc onlytac ist a =
| TacCall _ | TacExternal _ | Reference _
| TacDynamic _ | TacGeneric _ as a -> TacArg (loc,a)
| Tacexp a -> a
- | ConstrMayEval _ | UConstr _ | TacFreshId _ as a ->
+ | ConstrMayEval _ | UConstr _ | TacFreshId _ | TacPretype _ as a ->
if onlytac then error_tactic_expected loc else TacArg (loc,a)
| MetaIdArg _ -> assert false
@@ -662,6 +662,7 @@ and intern_tacarg strict onlytac ist = function
| TacExternal (loc,com,req,la) ->
TacExternal (loc,com,req,List.map (intern_tacarg !strict_check false ist) la)
| TacFreshId x -> TacFreshId (List.map (intern_or_var ist) x)
+ | TacPretype c -> TacPretype (intern_constr ist c)
| Tacexp t -> Tacexp (intern_tactic onlytac ist t)
| TacGeneric arg ->
let (_, arg) = Genintern.generic_intern ist arg in