diff sema/AstAction.d @ 180:29324df1d649

Fixed a but that did't allow type-only params.
author Anders Johnsen <skabet@gmail.com>
date Fri, 25 Jul 2008 01:34:12 +0200
parents 491b5fc4782a
children 7b274cfdc1dc
line wrap: on
line diff
--- a/sema/AstAction.d	Fri Jul 25 01:21:07 2008 +0200
+++ b/sema/AstAction.d	Fri Jul 25 01:34:12 2008 +0200
@@ -97,7 +97,7 @@
         else if (type.tok.type == Tok.Interface)
             d = new InterfaceDecl(identifierFromTok(id.tok));
         else
-            d = new VarDecl(handleType(type), identifierFromTok(id.tok), exp);
+            d = new VarDecl(handleType(type), id ? identifierFromTok(id.tok) : null, exp);
 
         d.att = att;
         return d;