comparison dmd/func.c @ 875:330f999ade44

Merged DMD 1.038
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 06 Jan 2009 16:33:51 +0100
parents bc982f1ad106
children ea82e2077f9d
comparison
equal deleted inserted replaced
874:2ddee23bd70e 875:330f999ade44
308 } 308 }
309 } 309 }
310 310
311 if (isFinal()) 311 if (isFinal())
312 { 312 {
313 if (isOverride())
314 error("does not override any function");
313 cd->vtblFinal.push(this); 315 cd->vtblFinal.push(this);
314 } 316 }
315 else 317 else
316 { 318 {
317 // Append to end of vtbl[] 319 // Append to end of vtbl[]
997 } 999 }
998 f = (TypeFunction *)type; 1000 f = (TypeFunction *)type;
999 } 1001 }
1000 1002
1001 int offend = fbody ? fbody->blockExit() & BEfallthru : TRUE; 1003 int offend = fbody ? fbody->blockExit() & BEfallthru : TRUE;
1002 //int offend = fbody ? fbody->fallOffEnd() : TRUE;
1003 1004
1004 if (isStaticCtorDeclaration()) 1005 if (isStaticCtorDeclaration())
1005 { /* It's a static constructor. Ensure that all 1006 { /* It's a static constructor. Ensure that all
1006 * ctor consts were initialized. 1007 * ctor consts were initialized.
1007 */ 1008 */