mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
29 lines
460 B
D
29 lines
460 B
D
interface IBar(T)
|
|
{
|
|
IFoo!T ownerDocument();
|
|
}
|
|
|
|
interface IFoo(T): IBar!T
|
|
{
|
|
// un-commenting the following line solves the issue
|
|
//IList!T getList();
|
|
}
|
|
|
|
interface IList(T) {}
|
|
|
|
class DOMImplementation(T)
|
|
{
|
|
class BarImpl: IBar!T
|
|
{
|
|
FooImpl ownerDocument() { return null; }
|
|
}
|
|
class FooImpl: BarImpl, IFoo!T
|
|
{
|
|
IList!T getList() { return null; }
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
auto impl = new DOMImplementation!string();
|
|
}
|