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

Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |ow.net

--- Comment #2 from Vladimir Panteleev <[email protected]> ---
(In reply to ryuukk_ from comment #1)
> It should say something like:
> 
> onlineapp.d(6): Error: no property `get` for type `Something`.

We can't do that, because then

///////////////// test.d /////////////////
auto functionIWantToCall(T)(T v)
if (is(T == long))
{
    // ...
}

void main()
{
    auto result = 5.functionIWantToCall();
}
//////////////////////////////////////////

will produce "Error: no property `functionIWantToCall` for type `int`", and the
user would be in their right to say "What do you mean, it's right there!".

But maybe for UFCS calls there could be a message that is between the two.

--

Reply via email to