digitalmars.D.bugs - [Issue 13808] New: Scoped std.string:format import in SysTime
- via Digitalmars-d-bugs (31/31) Dec 02 2014 https://issues.dlang.org/show_bug.cgi?id=13808
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: nobody puremagic.com Reporter: thecybershadow gmail.com ///////////////// 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 --
Dec 02 2014