diff options
| author | Gaëtan Gilbert | 2020-02-06 14:39:59 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-02-06 21:17:56 +0100 |
| commit | 9655b3413544319e1bb6633744c67d6ddc303f1d (patch) | |
| tree | d42e52c23b379147331053585fc6b67c16a05a27 | |
| parent | bae932cbd7ee0a5328a0913c09ae463b060f1f2f (diff) | |
unsafe_type_of -> type_of in Tactics.convert_concl
| -rw-r--r-- | tactics/tactics.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index f6f7c71dfd..a44d83141e 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -151,11 +151,12 @@ let convert_concl ~check ty k = Refine.refine ~typecheck:false begin fun sigma -> let sigma = if check then begin - ignore (Typing.unsafe_type_of env sigma ty); + let sigma, _ = Typing.type_of env sigma ty in match Reductionops.infer_conv env sigma ty conclty with | None -> error "Not convertible." | Some sigma -> sigma - end else sigma in + end else sigma + in let (sigma, x) = Evarutil.new_evar env sigma ~principal:true ty in let ans = if k == DEFAULTcast then x else mkCast(x,k,conclty) in (sigma, ans) |
