[Issue 4253] opCall() not called in initialized struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 30 09:29:41 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4253



--- Comment #1 from bearophile_hugs at eml.cc 2010-05-30 09:29:40 PDT ---
A simpler test case:

struct Foo {
    this(int x) {}
    void opCall(double y) {}
}
void main() {
    Foo foo = Foo(1);
    foo(1.5);
}

-- 
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