view test/structs.d @ 87:25d4fcce53f4 trunk

[svn r91] fixed some minor mistakes
author lindquist
date Sat, 03 Nov 2007 14:48:33 +0100
parents c53b6e3fe49a
children
line wrap: on
line source

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

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