Mercurial > projects > ddmd
diff dmd/Declaration.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | 206db751bd4c |
children | bc45b1c53019 |
line wrap: on
line diff
--- a/dmd/Declaration.d Sat Sep 11 13:03:39 2010 +0100 +++ b/dmd/Declaration.d Mon Sep 13 22:19:42 2010 +0100 @@ -158,7 +158,7 @@ string p = null; if (isConst()) p = "const"; - else if (isInvariant()) + else if (isImmutable()) p = "immutable"; else if (storage_class & STC.STCmanifest) p = "enum"; @@ -311,7 +311,7 @@ bool isConst() { return (storage_class & STC.STCconst) != 0; } - int isInvariant() { return storage_class & STC.STCinvariant; } + int isImmutable() { return storage_class & STC.STCimmutable; } int isAuto() { return storage_class & STC.STCauto; }