[Issue 2918] New: stdio.d(511): Error: cannot deduce template function from argument types !()(LockingTextWriter, uint)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 2 00:42:49 PDT 2009


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

           Summary: stdio.d(511): Error:  cannot deduce template function
                    from argument types !()(LockingTextWriter,uint)
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: someanon at yahoo.com


$ cat xor.d 
import std.random;
import std.stdio;

int main() {
  Random r = Random();
  writefln(r.front);
  return 0;
}

$ dmd xor.d 
/dmd/linux/bin/../../src/phobos/std/stdio.d(511): Error: template
std.format.formattedWrite(Writer,F,A...) does not match any function template
declaration
/dmd/linux/bin/../../src/phobos/std/stdio.d(511): Error: template
std.format.formattedWrite(Writer,F,A...) cannot deduce template function from
argument types !()(LockingTextWriter,uint)


-- 



More information about the Digitalmars-d-bugs mailing list