i.e: This compiles:
```
immutable int x;
immutable int* y;
shared static this()
{
y = &x;
assert(*y == 0);
x = 42;
assert(*y == 42);
}
```
But the expected behaviour is to fail compilation, same as:
```
struct S
{
immutable int x;
this(int n)
{
auto y = &x;
assert(*y == 0);
x = n;
assert(*y == n);
}
}
```
Comment #1 by robert.schadek — 2024-12-13T19:23:13Z