[Issue 5868] static attribute ignored with public static {} blocks
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 26 13:41:08 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5868
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #5 from bearophile_hugs at eml.cc 2012-01-26 13:41:06 PST ---
(In reply to comment #3)
> Not a bug. Spec sez:
>
> "The static in the static constructor declaration is not an attribute, it must
> appear immediately before the this"
Then is it better for the compiler to give an compile-time error for code like
this? Is this material for a diagnostic enhancement request?
class A {
static {
this() { ... }
}
}
--
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