[Issue 10488] New: Reg (2.063): Template this paramter doesn't work properly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 27 08:54:07 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10488

           Summary: Reg (2.063): Template this paramter doesn't work
                    properly
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: doob at me.com


--- Comment #0 from Jacob Carlborg <doob at me.com> 2013-06-27 08:54:06 PDT ---
This code compiled with 2.062:

class Foo
{
    static void instance (this T) ()
    {
    }
}

void main ()
{
    Foo.instance();
}

With 2.063 I get this error:

main.d(10): Error: template main.Foo.instance does not match any function
template declaration. Candidates are:
main.d(3):        main.Foo.instance(this T)()
main.d(10): Error: template main.Foo.instance(this T)() cannot deduce template
function from argument types !()()

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


More information about the Digitalmars-d-bugs mailing list