You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler allows implicitly converting a return value with indirections to immutable if it determines the result must be unique.
276
+
The compiler allows implicitly converting a return value with indirections to immutable if it determines the result is unique.
277
277
Formerly, this check would inspect the types of the indirections, and forget to take into account conversions, such as `int[]` to `void[]`:
278
278
)
279
279
@@ -296,7 +296,7 @@ void main()
296
296
$(P
297
297
This was filed as [issue 15660](https://issues.dlang.org/show_bug.cgi?id=15660), which has been fixed some time ago by making the check more strict: the called function must be strongly pure.
298
298
However, to avoid breaking code, the fix was only active with the `-preview=dip1000` switch.
299
-
Since it is unrelated to dip1000 (which is about `scope` pointers), the fix has been moved to a new `-preview=fixImmmutableConv` switch.
299
+
Since it is unrelated to dip1000 (which is about `scope` pointers), the fix has been moved to a new `-preview=fixImmutableConv` switch.
0 commit comments