[Issue 2433] New: Assertion failure: 't->deco' on line 604 in file 'mtype.c'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 28 07:37:32 PDT 2008


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

           Summary: Assertion failure: 't->deco' on line 604 in file
                    'mtype.c'
           Product: D
           Version: 2.020
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


Maybe duplicate of or related to 2047/1994

template Foo(T)
{
}

class Test
{
    alias Foo!(typeof(&this.bar)) foo;

    int bar()
    {
        return 1;
    }
}

Worked around by placing foo after bar.


-- 



More information about the Digitalmars-d-bugs mailing list