view test/structs.d @ 23:77e3d1ddae3f trunk

[svn r27] * Fixed bug in aggregate field lookup. * Fixed structs with no fields. * Added support for NegExp as in -x.
author lindquist
date Thu, 04 Oct 2007 09:24:15 +0200
parents c53b6e3fe49a
children
line wrap: on
line source

struct S
{
    int func()
    {
        return 42;
    }
}

void main()
{
    S s;
    int i = s.func();
}