[Issue 24656] enums with explicit EnumBaseType incorrectly matching multiple overloads.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 9 19:20:35 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24656
--- Comment #1 from dave287091 at gmail.com ---
Furthermore, the following additional function values to compile, which is very
counter-intuitive as E shouldn’t implicitly convert to byte as its EnumBaseType
is ubyte and it has a value outside the range of byte.
```
void indirect(E e){
foo(e);
}
```
--
More information about the Digitalmars-d-bugs
mailing list