[Issue 10253] Switch and Final Switch do not work with subtyping

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 07:06:50 PDT 2013


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



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-03 07:06:49 PDT ---
Btw, if there is ever an ambiguity problem on whether to switch on the struct
value or the 'alias this' value, then perhaps this feature should only be
enabled if the struct has only one field which is the 'alias this' field?

Think of it as an "eponymous struct" (maybe that's a bad terminology..).

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