[Issue 14978] New: Improve incorrect AA declaration error message

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 29 17:58:54 PDT 2015


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 at puremagic.com
          Reporter: luis at 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).

--


More information about the Digitalmars-d-bugs mailing list