https://d.puremagic.com/issues/show_bug.cgi?id=5105


Adrien Pensart <cruncheng...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |cruncheng...@gmail.com
         Resolution|FIXED                       |
           Severity|normal                      |regression


--- Comment #3 from Adrien Pensart <cruncheng...@gmail.com> 2014-03-09 07:55:32 
PDT ---
test_case_5105.d:

void main()
{
    auto c = new C;
    c.foo(10);
}
synchronized class C
{
    void foo(T)(T a) {}
}

Fails again in DMD 2.065 or before : 

dmd test_case_5105.d 
test_case_5105.d(12): Error: template test_case_5105.C.foo cannot deduce
function from argument types !()(int), candidates are:
test_case_5105.d(3):        test_case_5105.C.foo(T)(T a)

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

Reply via email to