Mercurial > projects > ddmd
diff dmd/AliasDeclaration.d @ 137:09c858522d55
merge
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:29:00 +0200 |
parents | af1bebfd96a4 |
children | af724d3510d7 |
line wrap: on
line diff
--- a/dmd/AliasDeclaration.d Mon Sep 13 23:27:38 2010 +0200 +++ b/dmd/AliasDeclaration.d Mon Sep 13 23:29:00 2010 +0200 @@ -100,9 +100,10 @@ } this.inSemantic = 1; +version(DMDV1) { // don't really know why this is here if (storage_class & STC.STCconst) error("cannot be const"); - +} storage_class |= sc.stc & STC.STCdeprecated; // Given: @@ -128,11 +129,12 @@ goto L2; // it's a symbolic alias ///version (DMDV2) { + type = type.addStorageClass(storage_class); if (storage_class & (STC.STCref | STCnothrow | STCpure)) { // 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); + sc.stc |= storage_class & (STCref | STCnothrow | STCpure | STCshared); type.resolve(loc, sc, &e, &t, &s); sc = sc.pop(); }