digitalmars.D.bugs - [Issue 20187] New: alias this bypasses truncating conversion warning
- d-bugmail puremagic.com (27/27) Sep 01 2019 https://issues.dlang.org/show_bug.cgi?id=20187
https://issues.dlang.org/show_bug.cgi?id=20187 Issue ID: 20187 Summary: alias this bypasses truncating conversion warning Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: elpenguino+D gmail.com Compile with -w: ``` unittest { struct X { long y; alias y this; } X x; x -= 1.0; //No warning x.y -= 1.0; //Warning } ``` Only one warning is triggered, when two should be. --
Sep 01 2019