Summary: More readable unpaired brace error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-10-21 15:16:28 PDT ---
This is a wrong D2 program:

void foo(int x)
    in {
        assert(x > 0);
    } body {
void main() {}

DMD 2.049 shows at compile-time:

test.d(7): unrecognized declaration

But that's not easy to understand. A simpler to understand error message may be
something like:

test.d(7): closing brace lacking a corresponding open brace.

Good error messages may shave away wasted seconds during debug, and seconds add

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to