← Back to index
|
Original Bugzilla link
Bug 7889 – writeln of array of tuple of const too
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-04-11T05:09:00Z
Last change time
2012-04-11T06:33:19Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-04-11T05:09:17Z
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))[])
Comment #1
by k.hara.pg — 2012-04-11T06:33:19Z
*** This issue has been marked as a duplicate of issue 6336 ***