Comment #0 by dlang-bugzilla — 2015-05-14T01:38:08Z
// test.d //
class C
{
class D
{
}
}
class E:C.D
{
}
///////////
test.d(8,1): Error: class test.E is nested within test, but super class D is nested within C
Comment #1 by TeddyBear12311 — 2019-08-15T01:00:42Z
Bang? Anyone?
not just nested classes but within functions
void foo()
{
class C { }
}
C cannot be used. foo could be main.
Comment #2 by robert.schadek — 2024-12-13T18:42:51Z