[Issue 16215] Nested class unable to resolve outer class variables in certain scenarios
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jun 28 19:17:13 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16215
--- Comment #1 from Puneet Goel <puneet at coverify.org> ---
Another reduced case:
class Foo {
class FooInner {}
}
class Bar: Foo {
byte foo;
class BarInner(T): Foo.FooInner {
byte zoo() {
return foo;
}
}
alias BarInnerThis = BarInner!Bar;
}
$ dmd -c test.d
test.d(8): Error: need 'this' for 'foo' of type 'byte'
--
More information about the Digitalmars-d-bugs
mailing list