https://issues.dlang.org/show_bug.cgi?id=7183
Andrej Mitrovic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Version|unspecified |D2 --- Comment #2 from Andrej Mitrovic <[email protected]> --- Unfortunately both examples now emit the less informative diagnostic: ----- struct S { int x; static void f() { x = 1; } } class C { int x; static void f() { x = 1; } } void main() { } ----- test.d(4): Error: need 'this' for 'x' of type 'int' test.d(10): Error: need 'this' for 'x' of type 'int' --
