[Issue 5868] static attribute ignored with public static {} blocks
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 26 10:27:47 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5868
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hsteoh at quickfur.ath.cx
--- Comment #2 from hsteoh at quickfur.ath.cx 2012-01-26 10:27:46 PST ---
This bug also happens without "public" for static ctors:
class A {
static {
int x; // this is OK, interpreted as "static int x"
this() { ... } // this is NOT OK, interpreted as non-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