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

           Summary: writeln of array of tuple of const too
           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 2012-04-11 05:09:17 PDT ---
import std.stdio, std.typecons;
void main() {
    Tuple!(const(int))[] a;
    writeln(a);
}


DMD 2.059beta4:

...\dmd2\src\phobos\std\format.d(1573): Error: static assert 
(isInputRange!(Tuple!(const(int))[])) is false
...\dmd2\src\phobos\std\format.d(2572):        instantiated from here:
formatValue!(LockingTextWriter,Tuple!(const(int))[],char)
...\dmd2\src\phobos\std\format.d(398):        instantiated from here:
formatGeneric!(LockingTextWriter,Tuple!(const(int))[],char)
...\dmd2\src\phobos\std\stdio.d(687):        instantiated from here:
formattedWrite!(LockingTextWriter,char,Tuple!(const(int))[])
...\dmd2\src\phobos\std\stdio.d(1574):        instantiated from here:
write!(Tuple!(const(int))[],char)
test.d(4):        instantiated from here: writeln!(Tuple!(const(int))[])

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

Reply via email to