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

Mike Franklin <slavo5...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavo5...@yahoo.com

--- Comment #7 from Mike Franklin <slavo5...@yahoo.com> ---
> 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