Mercurial > projects > dil
diff trunk/src/dil/semantic/Pass1.d @ 783:8380fb2c765f
Added documentation comments.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 23 Feb 2008 02:15:41 +0100 |
parents | 78be32e3e157 |
children | 47c5099562c7 |
line wrap: on
line diff
--- a/trunk/src/dil/semantic/Pass1.d Fri Feb 22 17:13:25 2008 +0100 +++ b/trunk/src/dil/semantic/Pass1.d Sat Feb 23 02:15:41 2008 +0100 @@ -320,7 +320,7 @@ D visit(VariablesDeclaration vd) { // Error if we are in an interface. - if (scop.symbol.isInterface) + if (scop.symbol.isInterface && !vd.isStatic) return error(vd.begin, MSG.InterfaceCantHaveVariables), vd; // Insert variable symbols in this declaration into the symbol table.