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

--- Comment #1 from Kenji Hara <[email protected]> ---
(In reply to Denis Shelomovskij from comment #0)
> This code should compile fine:
> ---
> struct S
> {
>     int* p;
> }
> 
> void f(ref int* p)
> {
>     p = cast(int*) 1;
>     assert(p); // passes
> }
> 
> void main()
> {
>     static assert(
>     {
>         S s;
>         f(s.p);
>         return s.p == null; // false

You meant:
          return s.p != null; // false
?

>     } ());
> }
> ---

--

Reply via email to