[Issue 3170] Forward reference of nested class fails if outer class is abstract or derived

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 13 13:53:12 PDT 2009


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


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Forward reference bugs      |Forward reference of nested
                   |                            |class fails if outer class
                   |                            |is abstract or derived




--- Comment #3 from Stewart Gordon <smjg at iname.com>  2009-07-13 13:53:11 PDT ---
Another case that fails:
----------
class A {
    class B : C.D { }
}

class C : E {
    class D { }
}

class E { }
----------
bz3170c.d(5): Error: class bz3170c.C is forward referenced when looking for 'D'
bz3170c.d(5): Error: class bz3170c.C is forward referenced when looking for 'D'
bz3170c.d(5): Error: class bz3170c.C is forward referenced when looking for 'D'
bz3170c.d(2): Error: no property 'D' for type 'bz3170c.C'
bz3170c.d(2): Error: C.D is used as a type
bz3170c.d(2): Error: class bz3170c.A.B base type must be class or interface,
not void
----------

(Seems that the presence or absence of static doesn't affect the bug....)

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