[Issue 13087] Error: no property 'xyz' for type 'Vec!4'

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 9 23:56:23 PDT 2014


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

--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
Reduced test case:

struct Vec
{
    int x;
    void foo() const   // const is necessary
    {
        auto n = component!(this, 'x');
    }
}

template component(alias vec, char c)
{
    alias component = vec.x;
}

--


More information about the Digitalmars-d-bugs mailing list