[Issue 8697] New: Invalid error message: Forward reference of interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 19 16:50:56 PDT 2012


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

           Summary: Invalid error message: Forward reference of interface
           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 16:51:58 PDT ---
interface InterBase : InterRoot { }
class Base : InterBase { }

void test(Base.Invalid) { }

interface InterRoot { }

2.060: test.d(3): Error: interface test.InterBase base InterRoot is forward
referenced

This message is printed about 20 times. In earlier versions it goes into an
infinite loop. The real error message should be:

test.d(6): Error: no property 'Invalid' for type 'test.Base'
test.d(6): Error: Base.Invalid is used as a type

You can verify this by replacing "class Base : InterBase" with "class Base :
InterRoot"

-- 
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