[Issue 7628] Regression with std.string format and alias this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 3 08:29:34 PST 2012


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



--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2012-03-03 08:29:31 PST ---
This test case with 2.059head does not raise errors, but std.format still has
an issue.

Reduced test case:

struct Foo {
    int[] bar;
    alias bar this;
}
void main()
{
    import std.format;
    import std.array;

    auto w = appender!string();
    FormatSpec!char f;
    Foo foo;
    formatValue(w, foo, f);    // OK
    formatValue(w, Foo(), f);  // NG
}

-- 
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