https://issues.dlang.org/show_bug.cgi?id=16480
Issue ID: 16480
Summary: Local selective imports hide member functions
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
struct S0
{
bool empty() { return false; }
}
struct S1
{
import std.range : empty;
bool empty() { return false; }
}
pragma(msg, typeof(S0.empty)); // bool()
pragma(msg, typeof(S1.empty)); // void
--
