Skip to content

Commit

Permalink
Merge pull request #4104 from BBasile/issue-15658
Browse files Browse the repository at this point in the history
fix issue 15658 - UFCS used in isFile caused a conflict with a DirEntry member
  • Loading branch information
H. S. Teoh committed Mar 24, 2016
2 parents 1651c78 + 45d15b9 commit 9c8f1a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion std/file.d
Expand Up @@ -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
Expand Down

0 comments on commit 9c8f1a3

Please sign in to comment.