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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |rg

--- Comment #1 from [email protected] ---
Reduced example:

====================================
struct var
{
        @property opDispatch(string file, T)(T)
        // if (is(T==char))
        {}
}

void main()
{
        var globals;
        globals.printInt = 2;
}
===================================

Removing `string file` pr enabling the template constraints makes DMD issue a
proper error message:
=> main.d(12): Error: no property printInt for type main.var

--

Reply via email to