[Issue 7673] New: Static variables do not allow implicit call to ctor via assignment
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 8 11:05:55 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7673
Summary: Static variables do not allow implicit call to ctor
via assignment
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-03-08 11:05:59 PST ---
struct Foo
{
this(bool) { }
}
void main()
{
Foo foo = false; // ok
static Foo foo = false; // NG
}
I don't know whether the first case is actually a feature. But if it is, the
second one should be allowed as well.
--
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