Pathological import symbol shadowing

Kagamin spam at here.lot
Sat Nov 14 15:48:47 UTC 2020


On Saturday, 14 November 2020 at 14:43:16 UTC, Paul Backus wrote:
> [1] https://dlang.org/spec/function.html#overload-sets

Ah, ok.

foo(1L);  // calls A.foo(long)

This line looks incorrect. If there was no foo(long), foo(1L) 
would call foo(int), then if foo(long) appears, the call will be 
silently diverted.


More information about the Digitalmars-d mailing list