https://issues.dlang.org/show_bug.cgi?id=13488
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P4
--
https://issues.dlang.org/show_bug.cgi?id=13488
Sobirari Muhomori changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=13488
--- Comment #6 from Sobirari Muhomori ---
It feels like everything constructed in a strongly pure call can be implicitly
casted to immutable. A call to pure constructor can be seen as a call to pure
factory, so its result can be casted to immutable i
https://issues.dlang.org/show_bug.cgi?id=13488
--- Comment #5 from Kenji Hara ---
(In reply to Sobirari Muhomori from comment #4)
> Doesn't work:
> ---
> struct B
> {
> const(int)[] a;
> }
>
> immutable(B) b(immutable int[] a) pure
> {
> return B(a);
> }
> ---
> Error: cannot implici
https://issues.dlang.org/show_bug.cgi?id=13488
--- Comment #4 from Sobirari Muhomori ---
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(
https://issues.dlang.org/show_bug.cgi?id=13488
--- Comment #3 from Kenji Hara ---
(In reply to Kenji Hara from comment #2)
> There's
Sorry, ignore this part.
--
https://issues.dlang.org/show_bug.cgi?id=13488
Kenji Hara changed:
What|Removed |Added
Summary|[reg] implicit conversions |implicit conversions to
|to i