view tests/code/struct_5.d @ 209:42e663451371

Renamed some of the actions. Declarations now have it's own action.
author Anders Johnsen <skabet@gmail.com>
date Tue, 12 Aug 2008 19:05:17 +0200
parents d84fec04d462
children
line wrap: on
line source

// Test forward references in struct members
struct B
{
    int b;
    A a;
}

struct A
{
    int a;
}

void main()
{
    B b;
    b.b = 2;
}