D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7889 - writeln of array of tuple of const too
Summary: writeln of array of tuple of const too
Status: RESOLVED DUPLICATE of issue 6336
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2012-04-11 05:09 UTC by bearophile_hugs
Modified: 2012-04-11 06:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012-04-11 05:09:17 UTC
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 Kenji Hara 2012-04-11 06:33:19 UTC

*** This issue has been marked as a duplicate of issue 6336 ***