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

anonymous4 <dfj1es...@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
                 OS|Windows                     |All

--- Comment #5 from anonymous4 <dfj1es...@sneakemail.com> ---
---
int f(in int a) pure
{
    return a;
}

void g()
{
    immutable int a=0;
    static assert(f(a)==0);
}
---
This works.


---
int f(in ref int a) pure
{
    return a;
}

void g()
{
    immutable int a=0;
    static assert(f(a)==0);
}
---
This doesn't.

--

Reply via email to