Mercurial > projects > ldc
diff dmd/func.c @ 130:a7dfa0ed966c trunk
[svn r134] Merged the DMD 1.024 frontend.
Added std.base64.
author | lindquist |
---|---|
date | Fri, 28 Dec 2007 23:52:40 +0100 |
parents | 9c79b61fb638 |
children | 0e28624814e8 |
line wrap: on
line diff
--- a/dmd/func.c Fri Dec 28 22:55:24 2007 +0100 +++ b/dmd/func.c Fri Dec 28 23:52:40 2007 +0100 @@ -145,6 +145,9 @@ if (isAbstract() && !isVirtual()) error("non-virtual functions cannot be abstract"); + + if (isAbstract() && isFinal()) + error("cannot be both final and abstract"); #if 0 if (isAbstract() && fbody) error("abstract functions cannot have bodies");