Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
129:8096ba7082db | 130:a7dfa0ed966c |
---|---|
143 if (isConst() || isAuto() || isScope()) | 143 if (isConst() || isAuto() || isScope()) |
144 error("functions cannot be const or auto"); | 144 error("functions cannot be const or auto"); |
145 | 145 |
146 if (isAbstract() && !isVirtual()) | 146 if (isAbstract() && !isVirtual()) |
147 error("non-virtual functions cannot be abstract"); | 147 error("non-virtual functions cannot be abstract"); |
148 | |
149 if (isAbstract() && isFinal()) | |
150 error("cannot be both final and abstract"); | |
148 #if 0 | 151 #if 0 |
149 if (isAbstract() && fbody) | 152 if (isAbstract() && fbody) |
150 error("abstract functions cannot have bodies"); | 153 error("abstract functions cannot have bodies"); |
151 #endif | 154 #endif |
152 | 155 |