Summary: Error message without line number when using struct
                    initializers for a struct with constructors.
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD

--- Comment #0 from S´┐Żnke Ludwig <> 2010-02-14 
07:49:21 PST ---
Using the struct initializer syntax which is now forbidden for structs with
constructors results in an error message without line number information.

struct test {
    int f;

    this(int x){
        f = x;

immutable test t2 = {1};

Error: struct test has constructors, cannot use { initializers }, use test(
initializers ) instead

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

Reply via email to