www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - std.stream vs Mode vs dmd.111 - dmd.113

reply h3r3tic <foo bar.baz> writes:
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
Feb 19 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCGF6V3w+/yD4P9tIRAoUHAKC0+vn1Lapl6K3AxzFIXIEeYRo9DgCcDfoP
hU1cxpCE+4sdwCxbaa9rTbo=
=7tR2
-----END PGP SIGNATURE-----
Feb 20 2005