]> matita.cs.unibo.it Git - helm.git/commitdiff
Types for LetIns computed during parsing for Coq objects may contain universes
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 22 Apr 2008 09:41:34 +0000 (09:41 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 22 Apr 2008 09:41:34 +0000 (09:41 +0000)
that must be made fresh.

helm/software/components/cic/deannotate.ml

index e81190842c6ff2e09c53e1c7bcc9ac9cb7c87bf8..c560af569e031f54a7e37baec625c950fae7d314 100644 (file)
@@ -136,7 +136,7 @@ let rec compute_letin_type context te =
         compute_letin_type ((Some (name,(C.Decl so)))::context) dest)
     | C.LetIn (name,so,C.Implicit _,dest) ->
        let so = compute_letin_type context so in
-       let ty = !type_of_aux' context so in
+       let ty = Unshare.unshare ~fresh_univs:true (!type_of_aux' context so) in
         C.LetIn (name, so, ty,
          compute_letin_type ((Some (name,(C.Def (so,ty))))::context) dest)
     | C.LetIn (name,so,ty,dest) ->