[Issue 7889] New: writeln of array of tuple of const too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 11 05:08:33 PDT 2012
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list