view 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 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;
}