Mercurial > projects > dstress
changeset 293:db3d94221144
enums in multiple scopes
Mike Parker <aldacron71@yahoo.com>
2005-02-15
news:cus126$2mq4$1@digitaldaemon.com
nntp://news.digitalmars.com/digitalmars.D.bugs/2991
author | thomask |
---|---|
date | Sat, 19 Feb 2005 11:18:37 +0000 |
parents | 7e28d437d6d7 |
children | 38499bb7a5a2 |
files | reporter.txt run/enum_13.d |
diffstat | 2 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/reporter.txt Sat Feb 19 11:15:48 2005 +0000 +++ b/reporter.txt Sat Feb 19 11:18:37 2005 +0000 @@ -38,6 +38,7 @@ Lionello Lunesu <lionello.lunesu@crystalinter.remove.com> Miguel Ferreira Simões <Kobold@netcabo.pt> Mike Swieton <mike@swieton.net> +Mike Parker <aldacron71@yahoo.com> ndove http://www.dsource.org/forums/profile.php?mode=viewprofile&u=142 Oskar Linde <d98-oliRE.MO.VE@nada.kth.se> Patrick Down <Patrick_member@pathlink.com>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/enum_13.d Sat Feb 19 11:18:37 2005 +0000 @@ -0,0 +1,28 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Mike Parker <aldacron71@yahoo.com> +// @date@ 2005-02-15 +// @uri@ news:cus126$2mq4$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2991 + +module dstress.run.enum_13; + +class Foo{ + enum MyEnum{ + VALUE_A=1, + } +} + +class Bar{ + enum MyEnum{ + VALUE_B=2, + } +} + +int main(){ + assert(Foo.MyEnum.VALUE_A==1); + assert(Bar.MyEnum.VALUE_B==2); + return 0; +} \ No newline at end of file