diff dmd/AliasDeclaration.d @ 179:cd48cb899aee

Updated to dmd2.040
author korDen
date Sun, 17 Oct 2010 20:56:07 +0400
parents e3afd1303184
children b0d41ff5e0df
line wrap: on
line diff
--- a/dmd/AliasDeclaration.d	Sun Oct 17 07:42:00 2010 +0400
+++ b/dmd/AliasDeclaration.d	Sun Oct 17 20:56:07 2010 +0400
@@ -132,11 +132,11 @@
 
 ///version (DMDV2) {
         type = type.addStorageClass(storage_class);
-		if (storage_class & (STC.STCref | STCnothrow | STCpure))
+		if (storage_class & (STC.STCref | STCnothrow | STCpure | STCdisable))
 		{	// For 'ref' to be attached to function types, and picked
 			// up by Type.resolve(), it has to go into sc.
 			sc = sc.push();
-		    sc.stc |= storage_class & (STCref | STCnothrow | STCpure | STCshared);
+		    sc.stc |= storage_class & (STCref | STCnothrow | STCpure | STCshared | STCdisable);
 			type.resolve(loc, sc, &e, &t, &s);
 			sc = sc.pop();
 		}