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

--- Comment #1 from Kenji Hara <[email protected]> ---
By fixing this issue, unreachable statement warning could be improved.

void test1()
{
    try
        assert(0);
    finally
    {
        int x = 1;  // should be reported as unreachable
    }
}

void test2()
{
    try
    {}
    finally
        assert(0);

    int x = 1;      // should be reported as unreachable
}

--

Reply via email to