Summary: static attribute ignored with public static {} blocks
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Mike Parker <> 2011-04-21 05:35:39 PDT ---
The following produces an error for conflicting constructors, "Previous
Definition Different".

class Foo
    public static
        this() {}

        this() {}

Remove the curly braces from the public static and it compiles fine. With
anything defined or declared in a public static block, the static attribute is
ignored. I'm sure this used to work, once upon a time. Tested on 2.052 only.

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

Reply via email to