view 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 source

/++
  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;
}