[Issue 8698] New: Forward reference error with interfaces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 19 17:43:28 PDT 2012


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: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list