https://issues.dlang.org/show_bug.cgi?id=22041
Paul Backus <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #2 from Paul Backus <[email protected]> --- This would allow undefined behavior in @safe code: --- int n; int example() @safe { SumType!(int*, int) x = &n; return x.match!( (int n) => n, (ref int* p) { x = 123456789; // overwrites p (currently @system) return *p; // kaboom } ); } --- --
