[Issue 13488] implicit conversions to immutable broken
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Sep 17 06:44:02 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13488
--- Comment #4 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
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)
--
More information about the Digitalmars-d-bugs
mailing list