summaryrefslogtreecommitdiff
path: root/pretyping/pattern.ml
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping/pattern.ml')
-rw-r--r--pretyping/pattern.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/pattern.ml b/pretyping/pattern.ml
index ef97250a..eb8a25eb 100644
--- a/pretyping/pattern.ml
+++ b/pretyping/pattern.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: pattern.ml 8755 2006-04-27 22:22:15Z herbelin $ *)
+(* $Id: pattern.ml 8963 2006-06-19 18:54:49Z barras $ *)
open Util
open Names
@@ -132,7 +132,7 @@ let map_pattern_with_binders g f l = function
let map_pattern f = map_pattern_with_binders (fun () -> ()) (fun () -> f) ()
let rec instantiate_pattern lvar = function
- | PVar id as x -> (try List.assoc id lvar with Not_found -> x)
+ | PVar id as x -> (try Lazy.force(List.assoc id lvar) with Not_found -> x)
| (PFix _ | PCoFix _) -> error ("Not instantiable pattern")
| c -> map_pattern (instantiate_pattern lvar) c