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

           Summary: Forward reference error with interfaces
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-09-19 
17:44:31 PDT ---
version(Bug) 
{} 
else { 
interface IRoot { } 
}

interface IClass : IRoot { }

struct Struct { }

class Class : IClass
{
    alias Struct Value;
}

void test(Class.Value) { }

version(Bug) { 
interface IRoot { } 
}
else
{}

$ dmd -c test.d
ok

$ dmd -version=Bug -c test.d
test.d(8): Error: interface test.IClass base IRoot is forward referenced

This message is printed about 20 times. This is unrelated to Issue 8697 (the
message is the same but they're different bugs), but it might be related to
Issue 8415.

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

Reply via email to