digitalmars.D.bugs - [Issue 10120] New: disable this(); and switch statement
- d-bugmail puremagic.com (36/36) May 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10120
- d-bugmail puremagic.com (9/9) May 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10120
http://d.puremagic.com/issues/show_bug.cgi?id=10120 Summary: disable this(); and switch statement Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: maxim maxim-fomin.ru --- struct S { int a; disable this(); this(int) { a = 1; } ~this() { assert(a !is 0); } alias a this; int opCall() { return a; } } void main() { switch (S.init()) { case 0: assert(0); //oops default: } } Maybe in the first order this is 'calling member function on type' problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10120 Maxim Fomin <maxim maxim-fomin.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 19 2013