Summary: Overloading doesn't work with aliases declared inside
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-02-01 11:34:05 PST ---
void test(uint a)


void test(char[] a)


template _test1(T = void)
    alias test _test1;

alias test _test2;

void main()

    _test1!()("a".dup); // Error: cannot implicitly convert expression
(_adDupT(&_D12TypeInfo_Aya6__initZ,cast(string)"a")) of type char[] to uint

Note how the alias outside the template works fine, but the one inside the
alias only picks up the lexically first match. Note that this works fine in D1.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to