]> matita.cs.unibo.it Git - helm.git/commitdiff
Arguments of constructors in a case pattern are now ppid-ed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 8 Nov 2007 14:06:13 +0000 (14:06 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 8 Nov 2007 14:06:13 +0000 (14:06 +0000)
helm/software/components/cic_exportation/cicExportation.ml

index c975ff11e8fb35ff92b192e698611f300af86431..e671effca9a565645d8d7f8c41f780d8b13f5d38 100644 (file)
@@ -294,6 +294,10 @@ let rec pp ~in_type t context =
                      let rec aux argsno context =
                       function
                          Cic.Lambda (name,ty,bo) when argsno > 0 ->
+                          let name =
+                           match name with
+                              Cic.Anonymous -> Cic.Anonymous
+                            | Cic.Name n -> Cic.Name (ppid n) in
                           let args,res =
                            aux (argsno - 1) (Some (name,Cic.Decl ty)::context)
                             bo