[Issue 16480] Local selective imports hide member functions
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Dec 20 11:17:13 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16480
bitter.taste at gmx.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bitter.taste at gmx.com
--- Comment #1 from bitter.taste at gmx.com ---
It doesn't really look like a bug beside the fact that the compiler doesn't
care about the methods being redefined... The first one to appear wins, easy!
```
struct S0
{
bool empty() { return false; }
int empty() { return false; }
}
pragma(msg, typeof(S0.empty)); // still bool()
```
--
More information about the Digitalmars-d-bugs
mailing list