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



--- Comment #2 from [email protected] 2013-10-08 22:43:06 PDT ---
Further reduced:

struct Foo {
    float a, b;

    Foo opUnary(string op)() const { return this; }
}

auto f1(T)(T a) { return a; }
auto f2(T)(T a) { return f1(a); }

void main() {}

unittest {
    auto a = Foo(0, 1);

    assert(f2(-a) == a);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to