Bug with nested static class referencing?

d coder via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 18 23:13:31 PST 2015


Greetings

I hit what looks like a probable DMD bug. When I reduced with help from
dustmite I get something like this. Can someone tell me if this is a bug or
am I doing something illegal?

class A {
  B.BB b;
}

class B: A {
  static class BB {}
}

When I compile I get:

test.d(2): Error: no property 'BB' for type 'test.B'
test.d(2): Error: B.BB is used as a type

Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150119/ce10a94e/attachment.html>


More information about the Digitalmars-d mailing list