Mercurial > projects > dang
diff sema/ScopeCheck.d @ 172:01c2c49775ef
- Changed Parser to be more clean on type parsing.
- Parsing int function(int), and the like, types.(Function pointers)
- Fixed a design fault that made Symbol be wrong. Now Symbols are created with a factory with the help of types.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Thu, 24 Jul 2008 20:31:24 +0200 |
parents | 7982eb63c0eb |
children |
line wrap: on
line diff
--- a/sema/ScopeCheck.d Thu Jul 24 12:27:34 2008 +0200 +++ b/sema/ScopeCheck.d Thu Jul 24 20:31:24 2008 +0200 @@ -29,7 +29,7 @@ override void visitVarDecl(VarDecl d) { - if(!d.env.findType(d.varType.get)) + if(d.identifier.get is null) messages.report(UndefinedType, d.varType.loc) .arg(d.varType.get);