On Wednesday, 15 November 2017 at 04:24:58 UTC, Walter Bright wrote:
On 11/14/2017 5:20 AM, Nick Treleaven wrote:
An very similar problem exists for int and char overloads:

alias foo = (char c) => 1;
alias foo = (int i) => 4;

enum int e = 7;
static assert(foo(e) == 4); // fails

I cannot reproduce this error.

Try it here: https://run.dlang.io/is/nfMGfG
DMD-nightly

Reply via email to