[Issue 5410] New: Variant.convertsTo(const(char)[]) seems broke
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 4 09:00:19 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5410
Summary: Variant.convertsTo(const(char)[]) seems broke
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: destructionator at gmail.com
--- Comment #0 from Adam D. Ruppe <destructionator at gmail.com> 2011-01-04 08:58:05 PST ---
Variant a;
a = "10";
assert(a.convertsTo!(const(char)[])); // fails but should work
This breaks coercing strings to numeric types too,
since this is the test inside the coerce function.
--
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