[Issue 2500] New: template struct methods are left unresolved if imported from multiple modules

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 8 18:08:07 PST 2008


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

           Summary: template struct methods are left unresolved if imported
                    from multiple modules
           Product: D
           Version: 1.037
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: 2korden at gmail.com


The smallest test case I could find that fails for both D1 and D2 follows:

module A;

import B;
import C;

public class A
{
    T!(A) c;
}

void main()
{
    A a = new A();
    a.c.foo();
}

// B.d
module B;

import A;
import C;

class B
{
    T!(A) t;
}

// C.d
module C;

struct T(Type)
{
    void foo(){}
}

If anyone knows a workaround *please* let me know.


-- 



More information about the Digitalmars-d-bugs mailing list