diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-12-24 11:05:43 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-12-24 11:05:43 +0000 |
commit | fdad03c5c247ab6cfdde8fd58658d9e40a3fd8aa (patch) | |
tree | b5a8aad89c9ea0a19d05be81d94e4a8d53c4ffe2 /plugins/quote | |
parent | 3c3bbccb00cb1c13c28a052488fc2c5311d47298 (diff) |
In "simpl c" and "change c with d", c can be a pattern.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12608 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/quote')
-rw-r--r-- | plugins/quote/quote.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/quote/quote.ml b/plugins/quote/quote.ml index e1a16ce49..2e4d07d63 100644 --- a/plugins/quote/quote.ml +++ b/plugins/quote/quote.ml @@ -215,9 +215,9 @@ let compute_rhs bodyi index_of_f = let i = destRel (array_last args) in PMeta (Some (coerce_meta_in i)) | App (f,args) -> - PApp (pattern_of_constr Evd.empty f, Array.map aux args) + PApp (snd (pattern_of_constr Evd.empty f), Array.map aux args) | Cast (c,_,_) -> aux c - | _ -> pattern_of_constr Evd.empty c + | _ -> snd (pattern_of_constr Evd.empty c) in aux bodyi |