February 19, 2005
import std.stream;

class Foo
{
	enum Mode{
		A, B
	}
}

void main()
{
	Foo.Mode.A;
}


result:
no property 'A' for type 'int'


Introduced in dmd.111, compiles just fine in .110

/Tom
February 20, 2005
h3r3tic wrote:

| import std.stream;
|
| class Foo
| {
|     enum Mode{
|         A, B
|     }
| }
|
| void main()
| {
|     Foo.Mode.A;
| }
|
|
| result:
| no property 'A' for type 'int'
|
|
| Introduced in dmd.111, compiles just fine in .110

The same as in:
news:cus0d3$2lup$1@digitaldaemon.com
nntp://digitalmars.com/digitalmars.D.bugs:2991
http://dstress.kuehne.cn/run/enum_13.d

std.mmfile declares: "enum Mode{...}"
std.stream contains a public import for std.mmfile

Thomas