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: nob...@puremagic.com
        ReportedBy: destructiona...@gmail.com


--- Comment #0 from Adam D. Ruppe <destructiona...@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: -------

Reply via email to