Thread overview
[Issue 5669] Constructor calls should be valid inside final switch
Dec 09, 2015
Infiltrator
May 22, 2018
Dmitry Olshansky
Dec 17, 2022
Iain Buclaw
December 09, 2015
https://issues.dlang.org/show_bug.cgi?id=5669

Infiltrator <lt.infiltrator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lt.infiltrator@gmail.com

--- Comment #1 from Infiltrator <lt.infiltrator@gmail.com> ---
The first example still fails to compile with messages about constructors behind labels.

The second compiles with 2.069 though.

--
May 22, 2018
https://issues.dlang.org/show_bug.cgi?id=5669

Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh@gmail.com

--- Comment #2 from Dmitry Olshansky <dmitry.olsh@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;
        }
    }
}

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=5669

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--