https://issues.dlang.org/show_bug.cgi?id=7390

John Colvin <john.loughran.col...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin@gmail.
                   |                            |com

--- Comment #5 from John Colvin <john.loughran.col...@gmail.com> ---
Another simple example:

void main()
{
    import std.stdio;
    import std.meta;
    switch (0)
    {
        foreach (i; AliasSeq!(0, 1))
        {
            case i:
                writeln(i);
        }
        default:
            writeln("other");
    }
}

Compiles fine without deprecations or warnings. This has caught me out multiple
times as I expect D to stop me making this mistake.

--

Reply via email to