[Issue 20447] New: [REG 2.089] importing core.thread exposes unistd, hiding object.dup

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 13 11:11:48 UTC 2019


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

          Issue ID: 20447
           Summary: [REG 2.089] importing core.thread exposes unistd,
                    hiding object.dup
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at gmail.com

void foo()
{
    import core.thread;
    int[] a;
    auto b = a.dup;
}

dupmess.d(5): Error: function core.sys.posix.unistd.dup(int) is not callable
using argument types (int[])
dupmess.d(5):        cannot pass argument a of type int[] to parameter int

--


More information about the Digitalmars-d-bugs mailing list