August 30, 2015 [Issue 14978] New: Improve incorrect AA declaration error message | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14978 Issue ID: 14978 Summary: Improve incorrect AA declaration error message Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: luis@luismarques.eu Code: void main() { (const(char)*)[string] aa; } Error messages: test.d(3): Error: (arguments) expected following const(char) test.d(3): Error: expression expected, not ')' test.d(3): Error: found 'aa' when expecting ')' It would be nice if the error messages were clearer (and more precise). -- |
Copyright © 1999-2021 by the D Language Foundation