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

           Summary: Implicit conversion for bigint array append
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-05-03 16:43:51 PDT ---
import std.bigint: BigInt;
void main() {
    auto p = new BigInt[1];
    p[0] = BigInt(1); // OK
    p[0] = 1;         // OK
    p ~= BigInt(1);   // OK
    p ~= 1;           // Error
}



DMD 2.063beta:

test.d(7): Error: cannot append type int to type BigInt[]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to