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

Mike Franklin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Mike Franklin <[email protected]> ---
> bool check()
> {
>    bool result = false;
>    
>    result |= false;   // result = result | ... : OK
>    if (result) goto ret;     // remove this line       : OK
>    
>    result |= false;   // result = result | ... : OK
>    if (result) {}     // remove this line       : OK
>    
>    ret: return true;
> }
> 
> enum e = check();

According to https://run.dlang.io/is/98Uf5T, this has been working since
2.067.1.

--

Reply via email to