[Issue 5346] instantiation of std.conv.toImpl and std.format.formatValue fails for unions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 10 11:50:58 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5346
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-09-10 11:50:43 PDT ---
Partial fixed in 2.055.
formatValue is now support union formatting.
void main()
{
U u;
//writeln(text(u)); // toImpl error instantiation toImpl
writeln(u); // Prints "U"
S s;
//writeln(text(s)); // toImpl error instantiation formatValue
writeln(s); // Prints "S(0, U)"
}
--
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