You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
}
The text was updated successfully, but these errors were encountered:
Simen Kjaeraas reported this on 2019-10-27T19:53:45Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=20329
Description
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); } }The text was updated successfully, but these errors were encountered: