]> matita.cs.unibo.it Git - helm.git/commitdiff
Another case where the presence of variables with bodies resulted in the
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 1 May 2008 13:59:06 +0000 (13:59 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 1 May 2008 13:59:06 +0000 (13:59 +0000)
creation of an application without arguments.

helm/software/components/ng_kernel/oCic2NCic.ml

index 245308d12235e346599b1940e9e16ed48b8aa900..c1b450e612d627135a6f982dbbb2088d8c12b1cb 100644 (file)
@@ -121,7 +121,10 @@ let splat_args_for_rel ctx t ?rels n_fix =
           | `Ce ((_, NCic.Def _),_) -> aux (n-1,tl))
       | _,_ -> assert false
     in
-    NCic.Appl (t:: aux (List.length ctx,rels))
+   let args = aux (List.length ctx,rels) in
+    match args with
+       [] -> t
+     | _::_ -> NCic.Appl (t::args)
 ;;
 
 let splat_args ctx t n_fix rels =