[Issue 5669] Constructor calls should be valid inside final switch
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue May 22 14:59:19 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=5669
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh at gmail.com
--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
Still fails talking about jumps on 2.080
enum SomeEnum { A, B}
class D  {
    this(int);
    this(string);
    this(SomeEnum s) {
        final switch(s) {
            case SomeEnum.A: this("Hello"); break;
            case SomeEnum.B: this(3); break;
        }
    }
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list