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

--- Comment #4 from Sobirari Muhomori <[email protected]> ---
Doesn't work:
---
struct B
{
    const(int)[] a;
}

immutable(B) b(immutable int[] a) pure
{
    return B(a);
}
---
Error: cannot implicitly convert expression (B(cast(const(int)[])a)) of type B
to immutable(B)

--

Reply via email to