https://issues.dlang.org/show_bug.cgi?id=20233

--- Comment #1 from Lorenzo Cogotti <mi...@inventati.org> ---
Sorry, there was a typo in my code listing, here is the correct version,
producing the same errors:

-----
module main;

struct Point
{
    int[2] coords;

    alias coords this;

    auto opDispatch(string name, A...)(A args)
    {
        return mixin("this.coords." ~ name ~ "(args)");
    }
}

void main()
{
    import std.stdio;

    Point p;
    writeln(p.ptr, p.length);
}

--

Reply via email to