comparison 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
comparison
equal deleted inserted replaced
782:c4b28cf38760 783:8380fb2c765f
318 } 318 }
319 319
320 D visit(VariablesDeclaration vd) 320 D visit(VariablesDeclaration vd)
321 { 321 {
322 // Error if we are in an interface. 322 // Error if we are in an interface.
323 if (scop.symbol.isInterface) 323 if (scop.symbol.isInterface && !vd.isStatic)
324 return error(vd.begin, MSG.InterfaceCantHaveVariables), vd; 324 return error(vd.begin, MSG.InterfaceCantHaveVariables), vd;
325 325
326 // Insert variable symbols in this declaration into the symbol table. 326 // Insert variable symbols in this declaration into the symbol table.
327 foreach (i, name; vd.names) 327 foreach (i, name; vd.names)
328 { 328 {