view tests/parser/public_2.d @ 127:d5b33ee318d4

New protection test
author Anders Johnsen <skabet@gmail.com>
date Sat, 21 Jun 2008 17:29:17 +0200
parents
children
line wrap: on
line source

//fail

struct A
{
    private int b;
    public int c;
}


int main()
{
    A a;
    a.b = 4;
    a.c = 5; // should fail
}