[Issue 8509] Appending a string to an enum string results in another enum string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 19 17:31:27 PDT 2013


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



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-05-19 17:31:26 PDT ---
(In reply to comment #1)
> Commits pushed to master at https://github.com/D-Programming-Language/dmd
> 
> https://github.com/D-Programming-Language/dmd/commit/d39288edbee92e241c5a086b297f6afe90c3d764
> Fixes Issue 8509 - Appending base type to enum should not result in new enum
> type.
> 
> https://github.com/D-Programming-Language/dmd/commit/22f300eb07f6e64f36a3535bee6c00b224249e35
> Merge pull request #1240 from AndrejMitrovic/Fix8509
> 
> Issue 8509 - Appending base type to enum should not result in new enum type

Partially fixed, but this test-case still works:

enum En { a = 1 << 1, b = 1 << 2 }
En e = En.a | En.b;

Here 'e' becomes an invalid enum value -- cast(En)6.

-- 
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