mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
fix issue 15658 - UFCS used in isFile conflict with DirEntry member
This commit is contained in:
parent
ade29ea46e
commit
45d15b9f05
1 changed files with 7 additions and 1 deletions
|
@ -1741,7 +1741,13 @@ assert(!"/usr/share/include".isFile);
|
|||
@property bool isFile(R)(auto ref R name)
|
||||
if (isConvertibleToString!R)
|
||||
{
|
||||
return name.isFile!(StringTypeOf!R);
|
||||
return isFile!(StringTypeOf!R)(name);
|
||||
}
|
||||
|
||||
unittest // bugzilla 15658
|
||||
{
|
||||
DirEntry e = DirEntry(".");
|
||||
static assert(is(typeof(isFile(e))));
|
||||
}
|
||||
|
||||
unittest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue