Mercurial > projects > dil
changeset 626:50f22f0467e6
Added test case forward03.d.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 11 Jan 2008 15:06:53 +0100 |
parents | 7949bb4c1618 |
children | 5289f71934cb |
files | trunk/src/test/forward02.d trunk/src/test/forward03.d |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/test/forward02.d Fri Jan 11 14:42:00 2008 +0100 +++ b/trunk/src/test/forward02.d Fri Jan 11 15:06:53 2008 +0100 @@ -2,8 +2,8 @@ Author: Jari-Matti Mäkelä +/ -// Possible circular composition. -struct A { B* b; /*because of pointer*/ } +// Valid circular composition because of pointer. +struct A { B* b; } struct B { A a; } // Equivalent to: struct A { A* a }