On Sunday, 25 February 2018 at 05:16:21 UTC, Meta wrote:
On Sunday, 25 February 2018 at 04:59:58 UTC, Basile B. wrote:
Use templates to prevent implicit conversion:
alias f(T = int) = (T n) => 0;
alias f(T = char) = (T n) => 'a';
alias f(T = bool) = (T n) => false;
Bug report is invalid and can be closed.
Please don't be so hasty. The main focus of that defect is
whether it is a bug or a feature that the same alias can be
declared multiple times. I've updated the title to reflect that.
Aliases are not things, they are what they alias. In your case
all are functions so this is an overload set.