[Issue 6529] writeln(const array of enums) too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 31 09:25:32 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6529


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
          Component|Phobos                      |DMD
           Platform|x86                         |All
         OS/Version|Windows                     |All
           Severity|enhancement                 |normal


--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-08-31 09:25:23 PDT ---
This is not an issue of std.format, is the issue of dmd.

enum Foo : char { A='a' }
ref const(Foo) f(const(Foo)[] arr){ return arr[0]; }
// test.d(2): Error: arr[0u] isn't mutable

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list