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: [email protected]
Reporter: [email protected]
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).
--