digitalmars.D.bugs - [Issue 19995] New: [REG 2.082] parameter attributes are accepted in
- d-bugmail puremagic.com (29/29) Jun 22 2019 https://issues.dlang.org/show_bug.cgi?id=19995
https://issues.dlang.org/show_bug.cgi?id=19995 Issue ID: 19995 Summary: [REG 2.082] parameter attributes are accepted in parameter-less functions Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: accepts-invalid Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: b2.temp gmx.com --- int test(const tation) { return 0; } void main() { test(); } --- 1. `tation` isn't even a thing 2. this should be rejected because for example `in` attribute can be a typo in `int`. --
Jun 22 2019