Bug 14581 – Allow inheriting from nested classes outside of parent class

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-14T01:38:08Z
Last change time
2024-12-13T18:42:51Z
Assigned to
No Owner
Creator
Vladimir Panteleev
See also
https://issues.dlang.org/show_bug.cgi?id=23921
Moved to GitHub: dmd#18989 →

Comments

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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18989 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB