Mercurial > projects > dil
diff src/tests/forward03.d @ 806:bcb74c9b895c
Moved out files in the trunk folder to the root.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 09 Mar 2008 00:12:19 +0100 |
parents | trunk/src/tests/forward03.d@b4c9f1cb19c6 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/tests/forward03.d Sun Mar 09 00:12:19 2008 +0100 @@ -0,0 +1,18 @@ +/++ + Author: Aziz Köksal ++/ + +// Impossible static circular reference. +const x = y; +const y = x; + +// Impossible static circular reference. +struct A +{ const int a = B.b; } +struct B +{ const int b = A.a; } + +struct C +{ + const x = C.x; +} \ No newline at end of file