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



--- Comment #11 from bearophile_h...@eml.cc 2011-11-22 00:05:51 PST ---
With the recent patch this doesn't compile, is this expected?


struct Foo {
    int x;
    alias x opDollar;
    int opIndex(int k) { return x * k; }
}
void main() {
    Foo f = Foo(7);
    int x = f[$ - 5]; // Error: undefined identifier __dollar
    assert(x == 2 * 7);
}

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

Reply via email to