Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/dmd/func.c Tue Jan 06 15:54:48 2009 +0100 +++ b/dmd/func.c Tue Jan 06 16:33:51 2009 +0100 @@ -310,6 +310,8 @@ if (isFinal()) { + if (isOverride()) + error("does not override any function"); cd->vtblFinal.push(this); } else @@ -999,7 +1001,6 @@ } int offend = fbody ? fbody->blockExit() & BEfallthru : TRUE; - //int offend = fbody ? fbody->fallOffEnd() : TRUE; if (isStaticCtorDeclaration()) { /* It's a static constructor. Ensure that all