]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/compilable/fix17686.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / fix17686.d
CommitLineData
b4c522fa
IB
1/* REQUIRED_ARGS:
2 * PERMUTE_ARGS:
3 */
4
5// https://issues.dlang.org/show_bug.cgi?id=17686
6
7interface INode
8{
9 @property INode parentNode();
10 @property IDocument ownerDocument();
11}
12interface IDocument: INode {}
13interface IEntityReference: INode {}
14
15class DOMImplementation(T)
16{
17 abstract class Node: INode
18 {
19 override
20 {
21 @property Node parentNode() { return null; }
22 @property Document ownerDocument() { return null; }
23 }
24
25 @property bool readonly() { return true; }
26 }
27 abstract class NodeWithChildren: Node {}
28
29 class Document: NodeWithChildren, IDocument {}
30
31 class EntityReference: NodeWithChildren, IEntityReference
32 {
33 override
34 {
35 @property bool readonly() { return true; }
36 }
37 }
38
39}
40
41void main()
42{
43 alias aaa = DOMImplementation!string;
44}
45