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

          Issue ID: 23372
           Summary: 'null' matched against T[] and T* selects T[]
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

void baz(T)(T* a)
{
}

void baz(T)(T[] a)
{
}

void main()
{
    baz(null); // baz(T)(T*) is instantiated
}

Compilation should fail with an ambiguity error.

--

Reply via email to