http://d.puremagic.com/issues/show_bug.cgi?id=2715

           Summary: Access Violation at writefln with interface
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: rayerd....@gmail.com


import std.stdio;
interface A {}
void main()
{
        A x;
        writefln(x);
}

C:\D\dmd\windows\bin\..\..\src\phobos\std\format.d(2050): Error: no property
'toString' for type 'a.A'
C:\D\dmd\windows\bin\..\..\src\phobos\std\format.d(2051): template
std.stdio.PrivateFileWriter!(char).PrivateFileWriter.write(C) does not match
any function template declaration
C:\D\dmd\windows\bin\..\..\src\phobos\std\format.d(2051): template
std.stdio.PrivateFileWriter!(char).PrivateFileWriter.write(C) cannot deduce
template function from argument types !()(int)

<-- dmd died here!


-- 

Reply via email to