June 22, 2019 [Issue 19995] New: [REG 2.082] parameter attributes are accepted in parameter-less functions | ||||
|---|---|---|---|---|
| ||||
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`. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply