diff trunk/src/tests/forward03.d @ 652:b4c9f1cb19c6

Added test forward05.d.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 15 Jan 2008 12:10:46 +0100
parents 2a690956cf1c
children
line wrap: on
line diff
--- a/trunk/src/tests/forward03.d	Tue Jan 15 11:40:11 2008 +0100
+++ b/trunk/src/tests/forward03.d	Tue Jan 15 12:10:46 2008 +0100
@@ -5,3 +5,14 @@
 // 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