February 19, 2005 std.stream vs Mode vs dmd.111 - dmd.113 | ||||
---|---|---|---|---|
| ||||
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 Re: std.stream vs Mode vs dmd.111 - dmd.113 | ||||
---|---|---|---|---|
| ||||
Posted in reply to h3r3tic Attachments: | 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 |
Copyright © 1999-2021 by the D Language Foundation