[Issue 15211] New: BigInt%uint and BigInt%ulong return different types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 16 16:59:30 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15211

          Issue ID: 15211
           Summary: BigInt%uint and BigInt%ulong return different types
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com

import std.bigint;
pragma(msg, typeof(BigInt.init%uint.init));
pragma(msg, typeof(BigInt.init%ulong.init));


Prints:

int
BigInt

This is especially annoying when the second operand is a size_t.

--


More information about the Digitalmars-d-bugs mailing list