Mercurial > projects > ddmd
comparison dmd/AliasDeclaration.d @ 179:cd48cb899aee
Updated to dmd2.040
author | korDen |
---|---|
date | Sun, 17 Oct 2010 20:56:07 +0400 |
parents | e3afd1303184 |
children | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
178:e3afd1303184 | 179:cd48cb899aee |
---|---|
130 if (s && ((s.getType() && type.equals(s.getType())) || s.isEnumMember())) | 130 if (s && ((s.getType() && type.equals(s.getType())) || s.isEnumMember())) |
131 goto L2; // it's a symbolic alias | 131 goto L2; // it's a symbolic alias |
132 | 132 |
133 ///version (DMDV2) { | 133 ///version (DMDV2) { |
134 type = type.addStorageClass(storage_class); | 134 type = type.addStorageClass(storage_class); |
135 if (storage_class & (STC.STCref | STCnothrow | STCpure)) | 135 if (storage_class & (STC.STCref | STCnothrow | STCpure | STCdisable)) |
136 { // For 'ref' to be attached to function types, and picked | 136 { // For 'ref' to be attached to function types, and picked |
137 // up by Type.resolve(), it has to go into sc. | 137 // up by Type.resolve(), it has to go into sc. |
138 sc = sc.push(); | 138 sc = sc.push(); |
139 sc.stc |= storage_class & (STCref | STCnothrow | STCpure | STCshared); | 139 sc.stc |= storage_class & (STCref | STCnothrow | STCpure | STCshared | STCdisable); |
140 type.resolve(loc, sc, &e, &t, &s); | 140 type.resolve(loc, sc, &e, &t, &s); |
141 sc = sc.pop(); | 141 sc = sc.pop(); |
142 } | 142 } |
143 else | 143 else |
144 /// #endif | 144 /// #endif |