Mercurial > projects > ldc
diff dmd/declaration.c @ 139:0ab29b838084 trunk
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
Fixed: tango.io.Console seems to be working now.
author | lindquist |
---|---|
date | Tue, 22 Jan 2008 00:01:16 +0100 |
parents | 0e28624814e8 |
children | ccd07d9f2ce9 |
line wrap: on
line diff
--- a/dmd/declaration.c Fri Jan 18 20:13:19 2008 +0100 +++ b/dmd/declaration.c Tue Jan 22 00:01:16 2008 +0100 @@ -1099,6 +1099,7 @@ Expression *VarDeclaration::callAutoDtor() { Expression *e = NULL; + //printf("VarDeclaration::callAutoDtor() %s\n", toChars()); if (storage_class & (STCauto | STCscope) && !noauto) { for (ClassDeclaration *cd = type->isClassHandle(); @@ -1109,6 +1110,8 @@ * classes to determine if there's no way the monitor * could be set. */ + if (cd->isInterfaceDeclaration()) + error("interface %s cannot be scope", cd->toChars()); if (1 || onstack || cd->dtors.dim) // if any destructors { // delete this;