Code: struct S { short[4] data; alias this data; string toString() { ... } } ... S s; writeln(to!string(s)); In dmd 2.059 (I believe) and earlier, this calls S.toString(). However, in git dmd, this calls data.toString() instead.
https://github.com/D-Programming-Language/phobos/pull/575
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/40de9e601b3d80189d9e8b1f5b32d8b00270f610 fix Issue 8080 - 'alias this' causes toString to be shadowed by aliased object