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

           Summary: writeln problem with array of tuples
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-10-22 18:07:35 PDT ---
A D2 program:

import std.stdio, std.typecons;
void main() {
    Tuple!(const(char))[] a1;
    Tuple!(immutable(char))[] a2;
    writeln(a1, a2);
}


DMD 2.056head gives:

...\dmd2\src\phobos\std\format.d(1657): Error: static assert 
(isInputRange!(Tuple!(const(char))[])) is false
...\dmd2\src\phobos\std\format.d(2032):        instantiated from here:
formatValue!(LockingTextWriter,Tuple!(const(char))[],char)
...\dmd2\src\phobos\std\format.d(313):        instantiated from here:
formatGeneric!(LockingTextWriter,Tuple!(const(char))[],immutable(char))
...\dmd2\src\phobos\std\stdio.d(678):        instantiated from here:
formattedWrite!(LockingTextWriter,immutable(char),Tuple!(const(char))[])
...\dmd2\src\phobos\std\stdio.d(1511):        instantiated from here:
write!(Tuple!(const(char))[],Tuple!(immutable(char))[],char)
temp.d(5):        instantiated from here:
writeln!(Tuple!(const(char))[],Tuple!(immutable(char))[])

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to