https://issues.dlang.org/show_bug.cgi?id=13808
Issue ID: 13808
Summary: Scoped std.string:format import in SysTime hijacks
UFCS
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
///////////////// test.d /////////////////
import std.datetime;
import std.string;
string format(SysTime s) { return "foo"; }
void main()
{
SysTime s;
s.format();
}
//////////////////////////////////////////
test.d(9): Error: template std.format.format cannot deduce function from
argument types !()(), candidates are:
C:\Soft\dmd2d\windows\bin\..\..\src\phobos\std\format.d(6373):
std.format.format(Char, Args...)(in Char[] fmt, Args args)
Introduced in https://github.com/D-Programming-Language/phobos/pull/2681
--