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
andrei (@andralex) commented on 2018-03-19T15:57:47Z
A similar example shows fetching a mutable pointer to immutable data:
----
int* g;
struct S
{
int* x;
this(this) { g = x; }
}
void main()
{
immutable int* x = new int(42);
assert(*x == 42); /* passes */
auto s = immutable S(x);
auto s2 = s; /* should be rejected */
}
ag0aep6g reported this on 2018-02-02T11:58:46Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=18357
CC List
Description
The text was updated successfully, but these errors were encountered: