D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7946 - can't put string into Appender!string
Summary: can't put string into Appender!string
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-19 10:12 UTC by Martin Nowak
Modified: 2012-04-19 10:24 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 Martin Nowak 2012-04-19 10:12:56 UTC
cat > bug.d << CODE
import std.array, std.format, std.range;

void foo()
{
    Appender!string app;
    // this is broken
    app.put("foo");
    // => broken std.range.put
    std.range.put(app, "foo");
    // => broken std.format.formattedWrite
    formattedWrite(app, "%s", "foo");
    // => ...
}
CODE

dmd -c bug

--------
Comment 1 Martin Nowak 2012-04-19 10:24:44 UTC
Sorry, it was only a debugging artifact.