]> matita.cs.unibo.it Git - helm.git/commitdiff
Stupid bug fixed: checkin the type in place of the sort during the refinement
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 18 Dec 2008 20:44:31 +0000 (20:44 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 18 Dec 2008 20:44:31 +0000 (20:44 +0000)
of axioms.

helm/software/components/cic_unification/cicRefine.ml

index cf7e582e611a6eb54d842243d5d372406db2c52b..245c88e0016c12f0e66fb3bcd42c0fb0a814497a 100644 (file)
@@ -1973,10 +1973,10 @@ let typecheck metasenv uri obj ~localization_tbl =
      let metasenv = CicMetaSubst.apply_subst_metasenv subst metasenv in
       Cic.Constant (name,Some bo',ty',args,attrs),metasenv,ugraph
   | Cic.Constant (name,None,ty,args,attrs) ->
-     let ty',_,metasenv,ugraph =
+     let ty',sort,metasenv,ugraph =
       type_of_aux' ~localization_tbl metasenv [] ty ugraph
      in
-      (match CicReduction.whd [] ty' with
+      (match CicReduction.whd [] sort with
           Cic.Sort _
         | Cic.Meta _ -> Cic.Constant (name,None,ty',args,attrs),metasenv,ugraph
         | _ -> raise (RefineFailure (lazy "")))