Mercurial > projects > dil
changeset 627:5289f71934cb
Added a test case to forward02.d.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 11 Jan 2008 15:09:58 +0100 |
parents | 50f22f0467e6 |
children | 08681b93c3b3 |
files | trunk/src/test/forward02.d |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/test/forward02.d Fri Jan 11 15:06:53 2008 +0100 +++ b/trunk/src/test/forward02.d Fri Jan 11 15:09:58 2008 +0100 @@ -6,4 +6,8 @@ struct A { B* b; } struct B { A a; } // Equivalent to: -struct A { A* a } +struct A { A* a; } + +// Valid circular composition because classes are reference types. +class C { D d; } +class D { C c; }