[Issue 9853] New: The order of static and shared on module constructors matters when it shouldn't
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 1 18:36:13 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9853
Summary: The order of static and shared on module constructors
matters when it shouldn't
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-04-01 18:36:12 PDT ---
This code
static shared this()
{
}
void main()
{
}
fails to compile, giving this error:
q.d(1): Error: constructor q.this constructors are only for class or struct
definitions
whereas if the static and shared are swapped, it compiles just fine. The order
shouldn't matter.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list