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

--- Comment #2 from Lionello Lunesu <[email protected]> ---
Adding an explicit "this." fixed the issue:

enum Enum : bool { A, B };
struct I{
void func(Enum e);
void func2(Enum a, Enum b) {this.func(cast(Enum)(a&&b));}
}

Something happens when the compiler adds the "this" in your behalf. The
resolution changes.

--

Reply via email to