Bug 20329 – Type nested inside two interfaces not visible in outermost type

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-27T19:53:45Z
Last change time
2024-12-13T19:06:00Z
Assigned to
No Owner
Creator
Simen Kjaeraas
Moved to GitHub: dmd#19634 →

Comments

Comment #0 by simen.kjaras — 2019-10-27T19:53:45Z
interface A { interface B : A { class C : B { void inside(C c) {} } // Works void innermost(A.B.C c); } // Fails: no property 'C' for type 'foo.A.B' void inside(A.B.C c) { } } // Works void outside(A.B.C c) { } Adding another layer of interfaces keeps the same kind of pattern: interface A { interface B : A { interface C : B { class D : C { void fun(D d) {} } } // Fails void fun(A.B.C.D d); } }
Comment #1 by robert.schadek — 2024-12-13T19:06:00Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19634 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB